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

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