patch-2.1.20 linux/drivers/net/mkiss.c

Next file: linux/drivers/net/net_init.c
Previous file: linux/drivers/net/loopback.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.19/linux/drivers/net/mkiss.c linux/drivers/net/mkiss.c
@@ -862,11 +862,11 @@
 }
 
 
-/* Initialize the driver.  Called by DDI. */
+/* Initialize the driver.  Called by network startup. */
+
 static int ax25_init(struct device *dev)
 {
 	struct ax_disp *ax = (struct ax_disp*)dev->priv;
-	int i;
 
 	static char ax25_bcast[AX25_ADDR_LEN] =
 		{'Q'<<1,'S'<<1,'T'<<1,' '<<1,' '<<1,' '<<1,'0'<<1};
@@ -903,8 +903,7 @@
 	dev->rebuild_header  = ax_rebuild_header;
 #endif
 
-	for (i = 0; i < DEV_NUMBUFFS; i++)
-		skb_queue_head_init(&dev->buffs[i]);
+	dev_init_buffers(dev);
 
 	/* New-style flags. */
 	dev->flags      = 0;

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