diff options
author | Eric Dumazet <edumazet@google.com> | 2022-06-22 03:23:03 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-08-17 15:16:19 +0200 |
commit | 3476fa73bd0f9dc8f38f238273a43a13d3a09b15 (patch) | |
tree | 36a9ae663ec258d20bb96986cc2a8918404b1fad | |
parent | 3a6b9f3577718c8e19374110705bb61bed3e314d (diff) | |
download | linux-stable-3476fa73bd0f9dc8f38f238273a43a13d3a09b15.tar.gz linux-stable-3476fa73bd0f9dc8f38f238273a43a13d3a09b15.tar.bz2 linux-stable-3476fa73bd0f9dc8f38f238273a43a13d3a09b15.zip |
raw: remove unused variables from raw6_icmp_error()
commit c4fceb46add65481ef0dfb79cad24c3c269b4cad upstream.
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>
Link: https://lore.kernel.org/r/20220622032303.159394-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | net/ipv6/raw.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/net/ipv6/raw.c b/net/ipv6/raw.c index f6119998700e..1af93856f876 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, hlist_nulls_for_each_entry(sk, hnode, hlist, sk_nulls_node) { /* 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))) |