patch-2.3.99-pre9 linux/drivers/net/arcnet/com20020-isa.c

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

diff -u --recursive --new-file v2.3.99-pre8/linux/drivers/net/arcnet/com20020-isa.c linux/drivers/net/arcnet/com20020-isa.c
@@ -194,10 +194,9 @@
 	s = get_options(s, 8, ints);
 	if (!ints[0])
 		return 1;
-	dev = alloc_bootmem(sizeof(struct net_device) + sizeof(struct arcnet_local) + 10);
-	memset(dev, 0, sizeof(struct net_device) + sizeof(struct arcnet_local) + 10);
+	dev = alloc_bootmem(sizeof(struct net_device) + sizeof(struct arcnet_local));
+	memset(dev, 0, sizeof(struct net_device) + sizeof(struct arcnet_local));
 	lp = dev->priv = (struct arcnet_local *) (dev + 1);
-	dev->name = (char *) (lp + 1);
 	dev->init = com20020isa_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)