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
- Lines: 15
- Date:
Tue May 2 12:40:59 2000
- Orig file:
v2.3.99-pre6/linux/drivers/net/plip.c
- Orig date:
Wed Apr 26 16:34:08 2000
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)