l2tp: remove useless NULL check in __l2tp_ip*_bind_lookup()
commit986f7cbc510e29c33b7c8c1701a902a752159425
authorGuillaume Nault <g.nault@alphalink.fr>
Fri, 6 Jan 2017 19:03:56 +0000 (6 20:03 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 7 Jan 2017 03:18:56 +0000 (6 22:18 -0500)
treeaf9547f6cc0ff0581cec9f35e4ea8ec176640f23
parentbb39b0bdc8c62e97ceedb9a5dadea0f098431d8b
l2tp: remove useless NULL check in __l2tp_ip*_bind_lookup()

If "l2tp" was NULL, that'd mean "sk" is NULL too. This can't happen
since "sk" is returned by sk_for_each_bound().

Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/l2tp/l2tp_ip.c
net/l2tp/l2tp_ip6.c