summaryrefslogtreecommitdiffstats
path: root/net/ipv6/ndisc.c
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2013-08-28 12:05:38 +0200
committerDavid S. Miller <davem@davemloft.net>2013-08-30 17:18:59 -0400
commit816c5b5b016acde51f0547cf1657d87cf22a6d47 (patch)
treeb7b544498aa5e3b6d2addc8e0f6c51f671bdf290 /net/ipv6/ndisc.c
parent1b7fdd2ab5852717a4fc7d79847759c67065d7e9 (diff)
downloadop-kernel-dev-816c5b5b016acde51f0547cf1657d87cf22a6d47.zip
op-kernel-dev-816c5b5b016acde51f0547cf1657d87cf22a6d47.tar.gz
ipv6: Remove redundant sk variable
A sk variable initialized to ndisc_sk is already available outside of the branch. Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/ndisc.c')
-rw-r--r--net/ipv6/ndisc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/net/ipv6/ndisc.c b/net/ipv6/ndisc.c
index 41720fe..bb6fd95 100644
--- a/net/ipv6/ndisc.c
+++ b/net/ipv6/ndisc.c
@@ -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);
OpenPOWER on IntegriCloud