patch-2.1.20 linux/drivers/net/loopback.c
Next file: linux/drivers/net/mkiss.c
Previous file: linux/drivers/net/lapbether.c
Back to the patch index
Back to the overall index
- Lines: 19
- Date:
Thu Jan 2 15:13:25 1997
- Orig file:
v2.1.19/linux/drivers/net/loopback.c
- Orig date:
Thu Dec 12 19:37:06 1996
diff -u --recursive --new-file v2.1.19/linux/drivers/net/loopback.c linux/drivers/net/loopback.c
@@ -110,8 +110,6 @@
/* Initialize the rest of the LOOPBACK device. */
int loopback_init(struct device *dev)
{
- int i;
-
dev->mtu = LOOPBACK_MTU;
dev->tbusy = 0;
dev->hard_start_xmit = loopback_xmit;
@@ -142,8 +140,7 @@
* Fill in the generic fields of the device structure.
*/
- for (i = 0; i < DEV_NUMBUFFS; i++)
- skb_queue_head_init(&dev->buffs[i]);
+ dev_init_buffers(dev);
return(0);
};
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov