patch-2.2.0-pre9 linux/net/irda/irttp.c

Next file: linux/net/irda/wrapper.c
Previous file: linux/net/irda/irsysctl.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.0-pre8/linux/net/irda/irttp.c linux/net/irda/irttp.c
@@ -6,7 +6,7 @@
  * Status:        Experimental.
  * Author:        Dag Brattli <dagb@cs.uit.no>
  * Created at:    Sun Aug 31 20:14:31 1997
- * Modified at:   Mon Dec 14 11:53:19 1998
+ * Modified at:   Tue Jan 19 23:56:58 1999
  * Modified by:   Dag Brattli <dagb@cs.uit.no>
  * 
  *     Copyright (c) 1998 Dag Brattli <dagb@cs.uit.no>, 
@@ -290,8 +290,6 @@
 	ASSERT( self->magic == TTP_TSAP_MAGIC, return -1;);
 	ASSERT( skb != NULL, return -1;);
 
-	IS_SKB( skb, return -1;);
-
 	/* Check that nothing bad happens */
 	if (( skb->len == 0) || ( !self->connected)) {
 		DEBUG( 4, __FUNCTION__ "(), No data, or not connected\n");
@@ -1044,12 +1042,12 @@
 	DEBUG( 4, "irttp_disconnect_indication()\n");
 
 	self = ( struct tsap_cb *) instance;
-
+	
 	ASSERT( self != NULL, return;);
 	ASSERT( self->magic == TTP_TSAP_MAGIC, return;);
-
+	
 	self->connected = FALSE;
-
+	
 	/* 
 	 *  Use callback to notify layer above 
 	 */
@@ -1207,7 +1205,6 @@
 {
 	struct sk_buff *skb, *frag;
 	int n = 0;  /* Fragment index */
-	int i = 1;  /* Fragment nr */
 
       	ASSERT( self != NULL, return NULL;);
 	ASSERT( self->magic == TTP_TSAP_MAGIC, return NULL;);
@@ -1227,11 +1224,9 @@
 	 *  Copy all fragments to a new buffer
 	 */
 	while (( frag = skb_dequeue( &self->rx_fragments)) != NULL) {
-		DEBUG( 4, __FUNCTION__ "(), copying fragment %d with len=%d\n",
-		       i++, (int) frag->len);
 		memcpy( skb->data+n, frag->data, frag->len);
 		n += frag->len;
-
+		
 		dev_kfree_skb( frag);
 	}
 	DEBUG( 4, __FUNCTION__ "(), frame len=%d\n", n);
@@ -1256,7 +1251,6 @@
 {
 	struct sk_buff *frag;
 	__u8 *frame;
-	int i = 0;
 
 	DEBUG( 4, __FUNCTION__ "()\n");
 
@@ -1306,10 +1300,6 @@
 		/* Hide the copied data from the original skb */
 		skb_pull( skb, self->max_seg_size);
 		
-		/* Queue segment */
-		DEBUG( 4, __FUNCTION__ "(), queuing segment %d with len=%d\n", 
-		       i++, (int) frag->len);
-
 		skb_queue_tail( &self->tx_queue, frag);
 	}
 }

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