]> git.hungrycats.org Git - linux/commitdiff
[NETLINK]: Remove buggy and useless rcv queue wakeup tests.
authorDavid S. Miller <davem@nuts.ninka.net>
Sat, 22 Feb 2003 14:20:14 +0000 (06:20 -0800)
committerDavid S. Miller <davem@nuts.ninka.net>
Sat, 22 Feb 2003 14:20:14 +0000 (06:20 -0800)
net/netlink/af_netlink.c

index 9249dddc9001d8bcb0cd08703dc1b83bf1616ba6..71f8c8fccb3ad0d3065a14b3e9c0a675623d67af 100644 (file)
@@ -706,12 +706,10 @@ static int netlink_recvmsg(struct kiocb *iocb, struct socket *sock,
                netlink_dump(sk);
 
 out:
-       if (skb_queue_len(&sk->receive_queue) <= sk->rcvbuf/2) {
-               if (skb_queue_len(&sk->receive_queue) == 0)
-                       clear_bit(0, &nlk->state);
-               if (!test_bit(0, &nlk->state))
-                       wake_up_interruptible(&nlk->wait);
-       }
+       if (skb_queue_len(&sk->receive_queue) == 0)
+               clear_bit(0, &nlk->state);
+       if (!test_bit(0, &nlk->state))
+               wake_up_interruptible(&nlk->wait);
        return err ? : copied;
 }
 
@@ -722,12 +720,10 @@ void netlink_data_ready(struct sock *sk, int len)
        if (nlk->data_ready)
                nlk->data_ready(sk, len);
 
-       if (skb_queue_len(&sk->receive_queue) <= sk->rcvbuf/2) {
-               if (skb_queue_len(&sk->receive_queue) == 0)
-                       clear_bit(0, &nlk->state);
-               if (!test_bit(0, &nlk->state))
-                       wake_up_interruptible(&nlk->wait);
-       }
+       if (skb_queue_len(&sk->receive_queue) == 0)
+               clear_bit(0, &nlk->state);
+       if (!test_bit(0, &nlk->state))
+               wake_up_interruptible(&nlk->wait);
 }
 
 /*