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

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

diff -u --recursive --new-file v2.1.19/linux/drivers/net/shaper.c linux/drivers/net/shaper.c
@@ -547,8 +547,6 @@
  
 int shaper_probe(struct device *dev)
 {
-	int i;
-	
 	/*
 	 *	Set up the shaper.
 	 */
@@ -567,8 +565,7 @@
 	 *	Intialise the packet queues
 	 */
 	 
-	for(i=0;i<DEV_NUMBUFFS;i++)
-		skb_queue_head_init(&dev->buffs[i]);
+	dev_init_buffers(dev);
 	
 	/*
 	 *	Handlers for when we attach to a device.

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