summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorluo penghao <luo.penghao@zte.com.cn>2021-11-11 18:09:24 +0300
committerDavid S. Miller <davem@davemloft.net>2021-11-14 15:20:44 +0300
commit1274a4eb318debe33e395bb8bcf8b98e6eb4670f (patch)
treee94fdc3e5e31bbab9aec00f1e33e66824ec548c2 /net
parent0de3521500cfdc91f49441a054ed892fc408d73f (diff)
downloadlinux-1274a4eb318debe33e395bb8bcf8b98e6eb4670f.tar.xz
ipv6: Remove duplicate statements
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>
Diffstat (limited to 'net')
-rw-r--r--net/ipv6/exthdrs.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/net/ipv6/exthdrs.c b/net/ipv6/exthdrs.c
index 38ece3b7b839..77e34aec7e82 100644
--- 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;