patch-2.3.99-pre7 linux/net/netrom/af_netrom.c

Next file: linux/net/netrom/nr_loopback.c
Previous file: linux/net/lapb/lapb_timer.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre6/linux/net/netrom/af_netrom.c linux/net/netrom/af_netrom.c
@@ -1281,12 +1281,6 @@
 	memset(dev_nr, 0x00, nr_ndevs * sizeof(struct net_device));
 
 	for (i = 0; i < nr_ndevs; i++) {
-		dev_nr[i].name = kmalloc(20, GFP_KERNEL);
-		if(dev_nr[i].name==NULL)
-		{
-			printk(KERN_ERR "Netrom: unable to register devices.\n");
-			break;
-		}
 		sprintf(dev_nr[i].name, "nr%d", i);
 		dev_nr[i].init = nr_init;
 		register_netdev(&dev_nr[i]);

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