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

Next file: linux/drivers/net/arcnet/com90xx.c
Previous file: linux/drivers/net/arcnet/com20020-pci.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre8/linux/drivers/net/arcnet/com90io.c linux/drivers/net/arcnet/com90io.c
@@ -428,9 +428,8 @@
 	s = get_options(s, 4, ints);
 	if (!ints[0])
 		return 0;
-	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 = com90io_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)