aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/isdn/mISDN/socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/isdn/mISDN/socket.c')
-rw-r--r--drivers/isdn/mISDN/socket.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/isdn/mISDN/socket.c b/drivers/isdn/mISDN/socket.c
index abe2d699b6f3..8b07f83d48ad 100644
--- a/drivers/isdn/mISDN/socket.c
+++ b/drivers/isdn/mISDN/socket.c
@@ -483,7 +483,6 @@ data_sock_bind(struct socket *sock, struct sockaddr *addr, int addr_len)
483{ 483{
484 struct sockaddr_mISDN *maddr = (struct sockaddr_mISDN *) addr; 484 struct sockaddr_mISDN *maddr = (struct sockaddr_mISDN *) addr;
485 struct sock *sk = sock->sk; 485 struct sock *sk = sock->sk;
486 struct hlist_node *node;
487 struct sock *csk; 486 struct sock *csk;
488 int err = 0; 487 int err = 0;
489 488
@@ -508,7 +507,7 @@ data_sock_bind(struct socket *sock, struct sockaddr *addr, int addr_len)
508 507
509 if (sk->sk_protocol < ISDN_P_B_START) { 508 if (sk->sk_protocol < ISDN_P_B_START) {
510 read_lock_bh(&data_sockets.lock); 509 read_lock_bh(&data_sockets.lock);
511 sk_for_each(csk, node, &data_sockets.head) { 510 sk_for_each(csk, &data_sockets.head) {
512 if (sk == csk) 511 if (sk == csk)
513 continue; 512 continue;
514 if (_pms(csk)->dev != _pms(sk)->dev) 513 if (_pms(csk)->dev != _pms(sk)->dev)