l2tp: small cleanup
Subsystems (2)
PATCH 1/1 l2tp: small cleanup
Signed-off-by Eric Dumazet <[email protected]>
--- net/l2tp/l2tp_ip.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
net/l2tp/l2tp_ip.c +1 -3
@@ -65,9 +65,7 @@ static struct sock *__l2tp_ip_bind_lookup(struct net *net, __be32 laddr, int difcontinue ;if ((l2tp->conn_id == tunnel_id) && -#ifdef CONFIG_NET_NS - (sk->sk_net == net) && -#endif +net_eq (sock_net (sk), net) && !(inet->inet_rcv_saddr && inet->inet_rcv_saddr != laddr) && !(sk->sk_bound_dev_if && sk->sk_bound_dev_if != dif)) goto found;
From: Eric Dumazet <[email protected]>
Date: Thu, 21 Oct 2010 13:36:11 +0200
Quoted 1 line
Signed-off-by Eric Dumazet <[email protected]>
Applied.