diff --git a/net/ipv6/raw.c b/net/ipv6/raw.c index f6b7a637df05..c3719e5ac89f 100644 --- a/net/ipv6/raw.c +++ b/net/ipv6/raw.c @@ -335,7 +335,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_head *head; struct sock *sk; @@ -347,8 +346,6 @@ void raw6_icmp_error(struct sk_buff *skb, int nexthdr, sk_for_each(sk, head) { /* 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_sdif(skb)))