From 47fb86cef5f4da6ee86100e410212b7b54e4800c Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Wed, 19 Sep 2018 15:17:02 +0200 Subject: nft-arp: Drop ineffective conditional Since fw->arp.arhln is of type __u8, its value will never become less than zero. Signed-off-by: Phil Sutter Signed-off-by: Florian Westphal --- iptables/nft-arp.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'iptables/nft-arp.c') diff --git a/iptables/nft-arp.c b/iptables/nft-arp.c index 7332b619..b8e89826 100644 --- a/iptables/nft-arp.c +++ b/iptables/nft-arp.c @@ -330,9 +330,6 @@ static void nft_arp_parse_payload(struct nft_xt_ctx *ctx, fw->arp.invflags |= ARPT_INV_ARPOP; break; default: - if (fw->arp.arhln < 0) - break; - if (ctx->payload.offset == sizeof(struct arphdr) + fw->arp.arhln) { get_cmp_data(e, &addr, sizeof(addr), &inv); -- cgit v1.2.3