patch-2.1.14 linux/net/ax25/ax25_in.c

Next file: linux/net/ax25/ax25_timer.c
Previous file: linux/net/README
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.13/linux/net/ax25/ax25_in.c linux/net/ax25/ax25_in.c
@@ -790,12 +790,8 @@
 {
 	int queued = 0, frametype, ns, nr, pf;
 	
-	if (ax25->sk != NULL && ax25->state == AX25_STATE_0 && ax25->sk->dead)
-		return queued;
-
-	if (ax25->state != AX25_STATE_1 && ax25->state != AX25_STATE_2 &&
-	    ax25->state != AX25_STATE_3 && ax25->state != AX25_STATE_4)
-		return queued;
+	if (ax25->state == AX25_STATE_0)
+		return 0;
 
 	del_timer(&ax25->timer);
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov