diff mbox series

[net-next] raw: remove unused variables from raw6_icmp_error()

Message ID 20220622032303.159394-1-edumazet@google.com (mailing list archive)
State Accepted
Commit c4fceb46add65481ef0dfb79cad24c3c269b4cad
Delegated to: Netdev Maintainers
Headers show
Series [net-next] raw: remove unused variables from raw6_icmp_error() | expand

Checks

Context Check Description
netdev/tree_selection success Clearly marked for net-next
netdev/fixes_present success Fixes tag not required for -next series
netdev/subject_prefix success Link
netdev/cover_letter success Single patches do not need cover letters
netdev/patch_count success Link
netdev/header_inline success No static functions without inline keyword in header files
netdev/build_32bit success Errors and warnings before: 3 this patch: 0
netdev/cc_maintainers warning 2 maintainers not CCed: yoshfuji@linux-ipv6.org dsahern@kernel.org
netdev/build_clang success Errors and warnings before: 3 this patch: 0
netdev/module_param success Was 0 now: 0
netdev/verify_signedoff success Signed-off-by tag matches author and committer
netdev/check_selftest success No net selftest shell script
netdev/verify_fixes success Fixes tag looks correct
netdev/build_allmodconfig_warn success Errors and warnings before: 3 this patch: 0
netdev/checkpatch success total: 0 errors, 0 warnings, 0 checks, 15 lines checked
netdev/kdoc success Errors and warnings before: 0 this patch: 0
netdev/source_inline success Was 0 now: 0

Commit Message

Eric Dumazet June 22, 2022, 3:23 a.m. UTC
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(-)

Comments

Jonathan Lemon June 22, 2022, 5:07 a.m. UTC | #1
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>
patchwork-bot+netdevbpf@kernel.org June 23, 2022, 2:10 a.m. UTC | #2
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!
diff mbox series

Patch

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)))