Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 816c5b5b authored by Thomas Graf's avatar Thomas Graf Committed by David S. Miller
Browse files

ipv6: Remove redundant sk variable



A sk variable initialized to ndisc_sk is already available outside
of the branch.

Signed-off-by: default avatarThomas Graf <tgraf@suug.ch>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1b7fdd2a
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -428,7 +428,6 @@ static void ndisc_send_skb(struct sk_buff *skb,
	type = icmp6h->icmp6_type;

	if (!dst) {
		struct sock *sk = net->ipv6.ndisc_sk;
		struct flowi6 fl6;

		icmpv6_flow_init(sk, &fl6, type, saddr, daddr, skb->dev->ifindex);