patch-2.1.92 linux/drivers/isdn/pcbit/layer2.c

Next file: linux/drivers/isdn/pcbit/module.c
Previous file: linux/drivers/isdn/pcbit/drv.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.91/linux/drivers/isdn/pcbit/layer2.c linux/drivers/isdn/pcbit/layer2.c
@@ -380,10 +380,8 @@
 			return;
 #else
 			/* discard previous queued frame */
-			if (dev->read_frame->skb) {
-				SET_SKB_FREE(dev->read_frame->skb);
+			if (dev->read_frame->skb)
 				kfree_skb(dev->read_frame->skb);
-			}
 			kfree(dev->read_frame);
 			dev->read_frame = NULL;
 #endif
@@ -648,10 +646,8 @@
 	dev->w_busy = dev->r_busy = 1;
 
 	if (dev->read_frame) {
-		if (dev->read_frame->skb) {
-			SET_SKB_FREE(dev->read_frame->skb);
+		if (dev->read_frame->skb)
 			kfree_skb(dev->read_frame->skb);
-		}
 		kfree(dev->read_frame);
 		dev->read_frame = NULL;
 	}

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