ipv6: remove unnecessary inet6_sk check
authorDave Jones <davej@codemonkey.org.uk>
Wed, 28 Dec 2016 16:53:18 +0000 (11:53 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 29 Dec 2016 17:05:49 +0000 (12:05 -0500)
commitde8499cee59465cfa6135591d665a065539d456b
tree90eb087c9d14608f00b4888126dc8b564b8e1bfd
parent9eb12474787d32a968b5b01ecbf83acd2d230b25
ipv6: remove unnecessary inet6_sk check

np is already assigned in the variable declaration of ping_v6_sendmsg.
At this point, we have already dereferenced np several times, so the
NULL check is also redundant.

Suggested-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Dave Jones <davej@codemonkey.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ping.c