Blame SOURCES/0066-json-Drop-pointless-assignment-in-exthdr_expr_json.patch

8ff5ad
From 5f30a3447d28381fdf534ff4ed90167455d1283b Mon Sep 17 00:00:00 2001
8ff5ad
From: Phil Sutter <psutter@redhat.com>
8ff5ad
Date: Wed, 6 Oct 2021 17:32:04 +0200
8ff5ad
Subject: [PATCH] json: Drop pointless assignment in exthdr_expr_json()
8ff5ad
8ff5ad
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1999059
8ff5ad
Upstream Status: nftables commit c1616dfd1ce40
8ff5ad
8ff5ad
commit c1616dfd1ce40bac197924c8947e1c646e915dca
8ff5ad
Author: Phil Sutter <phil@nwl.cc>
8ff5ad
Date:   Fri Jun 11 16:23:22 2021 +0200
8ff5ad
8ff5ad
    json: Drop pointless assignment in exthdr_expr_json()
8ff5ad
8ff5ad
    The updated value of 'is_exists' is no longer read at this point.
8ff5ad
8ff5ad
    Fixes: cb21869649208 ("json: tcp: add raw tcp option match support")
8ff5ad
    Signed-off-by: Phil Sutter <phil@nwl.cc>
8ff5ad
---
8ff5ad
 src/json.c | 1 -
8ff5ad
 1 file changed, 1 deletion(-)
8ff5ad
8ff5ad
diff --git a/src/json.c b/src/json.c
8ff5ad
index dfc9031..ecec51c 100644
8ff5ad
--- a/src/json.c
8ff5ad
+++ b/src/json.c
8ff5ad
@@ -679,7 +679,6 @@ json_t *exthdr_expr_json(const struct expr *expr, struct output_ctx *octx)
8ff5ad
 					 "base", expr->exthdr.raw_type,
8ff5ad
 					 "offset", expr->exthdr.offset,
8ff5ad
 					 "len", expr->len);
8ff5ad
-			is_exists = false;
8ff5ad
 		}
8ff5ad
 
8ff5ad
 		return json_pack("{s:o}", "tcp option", root);
8ff5ad
-- 
8ff5ad
2.31.1
8ff5ad