patch-2.3.99-pre9 linux/drivers/net/arcnet/com90xx.c

Next file: linux/drivers/net/bagetlance.c
Previous file: linux/drivers/net/arcnet/com90io.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre8/linux/drivers/net/arcnet/com90xx.c linux/drivers/net/arcnet/com90xx.c
@@ -677,9 +677,8 @@
 		printk("com90xx: Disabled.\n");
 		return 1;
 	}
-	dev = alloc_bootmem(sizeof(struct net_device) + 10);
-	memset(dev, 0, sizeof(struct net_device) + 10);
-	dev->name = (char *) (dev + 1);
+	dev = alloc_bootmem(sizeof(struct net_device));
+	memset(dev, 0, sizeof(struct net_device));
 	dev->init = com90xx_probe;
 
 	switch (ints[0]) {

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