[PATCH linux-next] ipv6: Remove duplicate statements

Subsystems: networking [general], networking [ipv4/ipv6], the rest

STALE1729d

2 messages, 2 authors, 2021-11-14 · open the first message on its own page

[PATCH linux-next] ipv6: Remove duplicate statements

From: <hidden>
Date: 2021-11-11 15:09:36

From: luo penghao <redacted>

This statement is repeated with the initialization statement

Reported-by: Zeal Robot <redacted>
Signed-off-by: luo penghao <redacted>
---
 net/ipv6/exthdrs.c | 1 -
 1 file changed, 1 deletion(-)
diff --git a/net/ipv6/exthdrs.c b/net/ipv6/exthdrs.c
index 3a871a0..e7e955d 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;
 
-- 
2.15.2

Re: [PATCH linux-next] ipv6: Remove duplicate statements

From: patchwork-bot+netdevbpf@kernel.org
Date: 2021-11-14 12:30:24

Hello:

This patch was applied to netdev/net-next.git (master)
by David S. Miller [off-list ref]:

On Thu, 11 Nov 2021 15:09:24 +0000 you wrote:
From: luo penghao <redacted>

This statement is repeated with the initialization statement

Reported-by: Zeal Robot <redacted>
Signed-off-by: luo penghao <redacted>

[...]
Here is the summary with links:
  - [linux-next] ipv6: Remove duplicate statements
    https://git.kernel.org/netdev/net-next/c/1274a4eb318d

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help