patch-2.3.99-pre7 linux/net/rose/af_rose.c

Next file: linux/net/rose/rose_link.c
Previous file: linux/net/protocols.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre6/linux/net/rose/af_rose.c linux/net/rose/af_rose.c
@@ -1453,12 +1453,6 @@
 	memset(dev_rose, 0x00, rose_ndevs * sizeof(struct net_device));
 
 	for (i = 0; i < rose_ndevs; i++) {
-		dev_rose[i].name = kmalloc(20, GFP_KERNEL);
-		if(dev_rose[i].name == NULL)
-		{
-			printk(KERN_ERR "Rose: unable to register ROSE devices.\n");
-			break;
-		}
 		sprintf(dev_rose[i].name, "rose%d", i);
 		dev_rose[i].init = rose_init;
 		register_netdev(&dev_rose[i]);

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