Skip to content

Commit

Permalink
ipv6: Remove duplicate statements
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
luo penghao authored and davem330 committed Nov 14, 2021
1 parent 0de3521 commit 1274a4e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion net/ipv6/exthdrs.c
Expand Up @@ -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;

Expand Down

0 comments on commit 1274a4e

Please sign in to comment.