patch-2.3.99-pre7 linux/drivers/net/plip.c

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

diff -u --recursive --new-file v2.3.99-pre6/linux/drivers/net/plip.c linux/drivers/net/plip.c
@@ -1395,14 +1395,6 @@
 				break;
 			}
 			memset(dev_plip[i], 0, sizeof(struct net_device));
-			dev_plip[i]->name = 
-				kmalloc(strlen("plipXXX"), GFP_KERNEL);
-			if (!dev_plip[i]->name) {
-				printk(KERN_ERR "plip: memory squeeze.\n");
-				kfree(dev_plip[i]);
-				dev_plip[i] = NULL;
-				break;
-			}
 			sprintf(dev_plip[i]->name, "plip%d", i);
 			dev_plip[i]->priv = pb;
 			if (plip_init_dev(dev_plip[i],pb) || register_netdev(dev_plip[i])) {

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)