From: Pablo Neira Ayuso Date: Mon, 13 Jan 2025 16:28:19 +0000 (+0100) Subject: evaluate: remove variable shadowing X-Git-Tag: v1.1.2~95 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7a41d031b68d2e3b0e1cd64d4266244bbecc2c96;p=thirdparty%2Fnftables.git evaluate: remove variable shadowing unsigned int i is already declared in resolve_ll_protocol_conflict(), remove it. Fixes: 3a734d608131 ("evaluate: don't assert on net/transport header conflict") Signed-off-by: Pablo Neira Ayuso --- diff --git a/src/evaluate.c b/src/evaluate.c index cd3619a2..919ef907 100644 --- a/src/evaluate.c +++ b/src/evaluate.c @@ -842,8 +842,6 @@ static int resolve_ll_protocol_conflict(struct eval_ctx *ctx, return -1; } } else { - unsigned int i; - /* payload desc stored in the L2 header stack? No conflict. */ for (i = 0; i < pctx->stacked_ll_count; i++) { if (pctx->stacked_ll[i] == payload->payload.desc)