patch-2.4.6 linux/drivers/isdn/isdn_common.c
Next file: linux/drivers/isdn/isdn_net.c
Previous file: linux/drivers/isdn/icn/icn.c
Back to the patch index
Back to the overall index
- Lines: 63
- Date:
Mon Jul 2 14:07:55 2001
- Orig file:
v2.4.5/linux/drivers/isdn/isdn_common.c
- Orig date:
Sat May 19 17:54:14 2001
diff -u --recursive --new-file v2.4.5/linux/drivers/isdn/isdn_common.c linux/drivers/isdn/isdn_common.c
@@ -1,4 +1,4 @@
-/* $Id: isdn_common.c,v 1.114.6.11 2001/04/20 02:41:58 keil Exp $
+/* $Id: isdn_common.c,v 1.114.6.12 2001/06/09 15:14:15 kai Exp $
* Linux ISDN subsystem, common used functions (linklevel).
*
@@ -51,7 +51,7 @@
isdn_dev *dev;
-static char *isdn_revision = "$Revision: 1.114.6.11 $";
+static char *isdn_revision = "$Revision: 1.114.6.12 $";
extern char *isdn_net_revision;
extern char *isdn_tty_revision;
@@ -233,20 +233,6 @@
return isdn_wildmat( TmpMsn1, TmpMsn2 );
}
-static void
-isdn_free_queue(struct sk_buff_head *queue)
-{
- struct sk_buff *skb;
- unsigned long flags;
-
- save_flags(flags);
- cli();
- if (skb_queue_len(queue))
- while ((skb = skb_dequeue(queue)))
- dev_kfree_skb(skb);
- restore_flags(flags);
-}
-
int
isdn_dc2minor(int di, int ch)
{
@@ -739,7 +725,7 @@
kfree(dev->drv[di]->rcverr);
kfree(dev->drv[di]->rcvcount);
for (i = 0; i < dev->drv[di]->channels; i++)
- isdn_free_queue(&dev->drv[di]->rpqueue[i]);
+ skb_queue_purge(&dev->drv[di]->rpqueue[i]);
kfree(dev->drv[di]->rpqueue);
kfree(dev->drv[di]->rcv_waitq);
kfree(dev->drv[di]);
@@ -1873,7 +1859,7 @@
dev->v110[i] = NULL;
// 20.10.99 JIM, try to reinitialize v110 !
isdn_info_update();
- isdn_free_queue(&dev->drv[di]->rpqueue[ch]);
+ skb_queue_purge(&dev->drv[di]->rpqueue[ch]);
}
restore_flags(flags);
}
@@ -2036,7 +2022,7 @@
if ((adding) && (d->rpqueue)) {
for (j = 0; j < d->channels; j++)
- isdn_free_queue(&d->rpqueue[j]);
+ skb_queue_purge(&d->rpqueue[j]);
kfree(d->rpqueue);
}
if (!(d->rpqueue =
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)