patch-1.3.91 linux/net/ax25/ax25_subr.c
Next file: linux/net/bridge/br.c
Previous file: linux/net/ax25/af_ax25.c
Back to the patch index
Back to the overall index
-  Lines: 24
 -  Date:
Thu Apr 18 14:35:34 1996
 -  Orig file: 
v1.3.90/linux/net/ax25/ax25_subr.c
 -  Orig date: 
Fri Apr 12 15:52:11 1996
 
diff -u --recursive --new-file v1.3.90/linux/net/ax25/ax25_subr.c linux/net/ax25/ax25_subr.c
@@ -494,13 +494,9 @@
                 return 0;
         }
 
-	skbq = (struct sk_buff *) list->next;
-
-	while (skbq != (struct sk_buff *)list) {
+	for (skbq = list->next; skbq != (struct sk_buff *)list; skbq = skbq->next)
 		if (skb->sk == skbq->sk)
 			count++;
-		skbq = skbq->next;
-	}
 
         restore_flags(flags);
         return count;
@@ -512,7 +508,7 @@
 
 int ax25_queue_length(ax25_cb *ax25, struct sk_buff *skb)
 {
-	return ax25_list_length(&ax25->write_queue, skb)+ax25_list_length(&ax25->ack_queue, skb);
+	return ax25_list_length(&ax25->write_queue, skb) + ax25_list_length(&ax25->ack_queue, skb);
 }
 
 /*
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this