patch-2.1.14 linux/net/netrom/nr_in.c

Next file: linux/net/netrom/nr_timer.c
Previous file: linux/net/ipv6/raw.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.13/linux/net/netrom/nr_in.c linux/net/netrom/nr_in.c
@@ -315,14 +315,8 @@
 {
 	int queued = 0, frametype;
 	
-	if (sk->protinfo.nr->state == NR_STATE_0 && sk->dead)
-		return queued;
-
-	if (sk->protinfo.nr->state != NR_STATE_1 && sk->protinfo.nr->state != NR_STATE_2 &&
-	    sk->protinfo.nr->state != NR_STATE_3) {
-		printk(KERN_ERR "nr_process_rx_frame: frame received - state: %d\n", sk->protinfo.nr->state);
-		return queued;
-	}
+	if (sk->protinfo.nr->state == NR_STATE_0)
+		return 0;
 
 	del_timer(&sk->timer);
 

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