projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0de3521
)
ipv6: Remove duplicate statements
author
luo penghao
<luo.penghao@zte.com.cn>
Thu, 11 Nov 2021 15:09:24 +0000
(15:09 +0000)
committer
David S. Miller
<davem@davemloft.net>
Sun, 14 Nov 2021 12:20:44 +0000
(12:20 +0000)
This statement is repeated with the initialization statement
Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: luo penghao <luo.penghao@zte.com.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/exthdrs.c
patch
|
blob
|
blame
|
history
diff --git
a/net/ipv6/exthdrs.c
b/net/ipv6/exthdrs.c
index 38ece3b7b8395d4d9ca31a6fb2a2b7dea4a361cd..77e34aec7e823ad2004abfc68ec38a24e16f1919 100644
(file)
--- a/
net/ipv6/exthdrs.c
+++ b/
net/ipv6/exthdrs.c
@@
-686,7
+686,6
@@
static int ipv6_rthdr_rcv(struct sk_buff *skb)
struct net *net = dev_net(skb->dev);
int accept_source_route = net->ipv6.devconf_all->accept_source_route;
- idev = __in6_dev_get(skb->dev);
if (idev && accept_source_route > idev->cnf.accept_source_route)
accept_source_route = idev->cnf.accept_source_route;