* [PATCH net-next] raw: remove unused variables from raw6_icmp_error()
@ 2022-06-22 3:23 Eric Dumazet
2022-06-22 5:07 ` Jonathan Lemon
2022-06-23 2:10 ` patchwork-bot+netdevbpf
0 siblings, 2 replies; 3+ messages in thread
From: Eric Dumazet @ 2022-06-22 3:23 UTC (permalink / raw)
To: David S . Miller, Jakub Kicinski, Paolo Abeni
Cc: netdev, eric.dumazet, Eric Dumazet, kernel test robot
saddr and daddr are set but not used.
Fixes: ba44f8182ec2 ("raw: use more conventional iterators")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
---
net/ipv6/raw.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/net/ipv6/raw.c b/net/ipv6/raw.c
index 46b560aacc11352ee9f2043c277709c28f85e610..722de9dd0ff78fbb2535165935c92fe7d7e6a8c2 100644
--- a/net/ipv6/raw.c
+++ b/net/ipv6/raw.c
@@ -332,7 +332,6 @@ static void rawv6_err(struct sock *sk, struct sk_buff *skb,
void raw6_icmp_error(struct sk_buff *skb, int nexthdr,
u8 type, u8 code, int inner_offset, __be32 info)
{
- const struct in6_addr *saddr, *daddr;
struct net *net = dev_net(skb->dev);
struct hlist_nulls_head *hlist;
struct hlist_nulls_node *hnode;
@@ -345,8 +344,6 @@ void raw6_icmp_error(struct sk_buff *skb, int nexthdr,
sk_nulls_for_each(sk, hnode, hlist) {
/* Note: ipv6_hdr(skb) != skb->data */
const struct ipv6hdr *ip6h = (const struct ipv6hdr *)skb->data;
- saddr = &ip6h->saddr;
- daddr = &ip6h->daddr;
if (!raw_v6_match(net, sk, nexthdr, &ip6h->saddr, &ip6h->daddr,
inet6_iif(skb), inet6_iif(skb)))
--
2.37.0.rc0.104.g0611611a94-goog
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH net-next] raw: remove unused variables from raw6_icmp_error()
2022-06-22 3:23 [PATCH net-next] raw: remove unused variables from raw6_icmp_error() Eric Dumazet
@ 2022-06-22 5:07 ` Jonathan Lemon
2022-06-23 2:10 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: Jonathan Lemon @ 2022-06-22 5:07 UTC (permalink / raw)
To: Eric Dumazet
Cc: David S . Miller, Jakub Kicinski, Paolo Abeni, netdev,
eric.dumazet, kernel test robot
On Wed, Jun 22, 2022 at 03:23:03AM +0000, Eric Dumazet wrote:
> saddr and daddr are set but not used.
>
> Fixes: ba44f8182ec2 ("raw: use more conventional iterators")
> Reported-by: kernel test robot <lkp@intel.com>
> Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Jonathan Lemon <jonathan.lemon@gmail.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH net-next] raw: remove unused variables from raw6_icmp_error()
2022-06-22 3:23 [PATCH net-next] raw: remove unused variables from raw6_icmp_error() Eric Dumazet
2022-06-22 5:07 ` Jonathan Lemon
@ 2022-06-23 2:10 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2022-06-23 2:10 UTC (permalink / raw)
To: Eric Dumazet; +Cc: davem, kuba, pabeni, netdev, eric.dumazet, lkp
Hello:
This patch was applied to netdev/net-next.git (master)
by Jakub Kicinski <kuba@kernel.org>:
On Wed, 22 Jun 2022 03:23:03 +0000 you wrote:
> saddr and daddr are set but not used.
>
> Fixes: ba44f8182ec2 ("raw: use more conventional iterators")
> Reported-by: kernel test robot <lkp@intel.com>
> Signed-off-by: Eric Dumazet <edumazet@google.com>
> ---
> net/ipv6/raw.c | 3 ---
> 1 file changed, 3 deletions(-)
Here is the summary with links:
- [net-next] raw: remove unused variables from raw6_icmp_error()
https://git.kernel.org/netdev/net-next/c/c4fceb46add6
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-06-23 2:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-22 3:23 [PATCH net-next] raw: remove unused variables from raw6_icmp_error() Eric Dumazet
2022-06-22 5:07 ` Jonathan Lemon
2022-06-23 2:10 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).