]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - net/x25/x25_in.c
Merge branch 'timers-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...
[karo-tx-linux.git] / net / x25 / x25_in.c
index 1c88762c27943858bbc55394eb0fec6cbf053932..96d9227835479474e6cedaeef6704f619c1683e8 100644 (file)
@@ -114,7 +114,7 @@ static int x25_state1_machine(struct sock *sk, struct sk_buff *skb, int frametyp
                        /*
                         *      Copy any Call User Data.
                         */
-                       if (skb->len >= 0) {
+                       if (skb->len > 0) {
                                skb_copy_from_linear_data(skb,
                                              x25->calluserdata.cuddata,
                                              skb->len);
@@ -247,7 +247,7 @@ static int x25_state3_machine(struct sock *sk, struct sk_buff *skb, int frametyp
                                        break;
                                }
                                if (atomic_read(&sk->sk_rmem_alloc) >
-                                   (sk->sk_rcvbuf / 2))
+                                   (sk->sk_rcvbuf >> 1))
                                        x25->condition |= X25_COND_OWN_RX_BUSY;
                        }
                        /*