projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
743902c
)
seg6_iptunnel: Remove redundant initialization of variable err
author
Colin Ian King
<colin.king@canonical.com>
Thu, 2 Sep 2021 14:35:05 +0000
(15:35 +0100)
committer
David S. Miller
<davem@davemloft.net>
Fri, 3 Sep 2021 11:32:25 +0000
(12:32 +0100)
The variable err is being initialized with a value that is never read, it
is being updated later on. The assignment is redundant and can be removed.
Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/seg6_iptunnel.c
patch
|
blob
|
history
diff --git
a/net/ipv6/seg6_iptunnel.c
b/net/ipv6/seg6_iptunnel.c
index 1bf5f5ae75acf66d55097ccecced447bfb0ae724..3adc5d9211ad695bb1cdf66405be3dfe1a539c76 100644
(file)
--- a/
net/ipv6/seg6_iptunnel.c
+++ b/
net/ipv6/seg6_iptunnel.c
@@
-385,7
+385,7
@@
static int seg6_output_core(struct net *net, struct sock *sk,
struct dst_entry *orig_dst = skb_dst(skb);
struct dst_entry *dst = NULL;
struct seg6_lwt *slwt;
- int err
= -EINVAL
;
+ int err;
err = seg6_do_srh(skb);
if (unlikely(err))