summaryrefslogtreecommitdiff
path: root/net/ipv6
diff options
context:
space:
mode:
authorColin Ian King <colin.i.king@gmail.com>2022-10-17 23:08:09 +0100
committerSteffen Klassert <steffen.klassert@secunet.com>2022-10-19 09:05:57 +0200
commite91001bae0d1725d9a49b5bfb5f46f6d1ca6bf1d (patch)
treeaec8403360c93ab2e92a0c1e034800a8bc66c453 /net/ipv6
parente2ac2a00dae10997b71870ecf26ca69f4d726537 (diff)
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 <colin.i.king@gmail.com> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'net/ipv6')
-rw-r--r--net/ipv6/esp6_offload.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/ipv6/esp6_offload.c b/net/ipv6/esp6_offload.c
index 79d43548279c..97edf461bc72 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);