From: Colin Ian King Date: Mon, 17 Oct 2022 22:08:09 +0000 (+0100) Subject: esp6: remove redundant variable err X-Git-Tag: v6.6.17~5932^2~110^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e91001bae0d1725d9a49b5bfb5f46f6d1ca6bf1d;p=platform%2Fkernel%2Flinux-rpi.git esp6: remove redundant variable err Variable err is being assigned a value that is not read, the assignment is redundant and so is the variable. Remove it. Cleans up clang scan warning: net/ipv6/esp6_offload.c:64:7: warning: Although the value stored to 'err' is used in the enclosing expression, the value is never actually read from 'err' [deadcode.DeadStores] Signed-off-by: Colin Ian King Signed-off-by: Steffen Klassert --- diff --git a/net/ipv6/esp6_offload.c b/net/ipv6/esp6_offload.c index 79d4354..97edf46 100644 --- a/net/ipv6/esp6_offload.c +++ b/net/ipv6/esp6_offload.c @@ -56,12 +56,11 @@ static struct sk_buff *esp6_gro_receive(struct list_head *head, __be32 seq; __be32 spi; int nhoff; - int err; if (!pskb_pull(skb, offset)) return NULL; - if ((err = xfrm_parse_spi(skb, IPPROTO_ESP, &spi, &seq)) != 0) + if (xfrm_parse_spi(skb, IPPROTO_ESP, &spi, &seq) != 0) goto out; xo = xfrm_offload(skb);