summaryrefslogtreecommitdiffstats
path: root/drivers/net/ne2k-pci.c
diff options
context:
space:
mode:
authorJiri Pirko <jpirko@redhat.com>2009-05-02 23:55:06 +0000
committerDavid S. Miller <davem@davemloft.net>2009-05-03 14:19:23 -0700
commiteb457f36929da6d78c1f03cbb9038ef62646d79d (patch)
tree5dd6f4a6a71bc91ffe42a0d96c6cf59ef843f510 /drivers/net/ne2k-pci.c
parent698960a081bfcc3e2e0f556342d86405346d2edc (diff)
downloadlinux-eb457f36929da6d78c1f03cbb9038ef62646d79d.tar.gz
linux-eb457f36929da6d78c1f03cbb9038ef62646d79d.tar.bz2
linux-eb457f36929da6d78c1f03cbb9038ef62646d79d.zip
ne2k-pci: use dev->addr_len instead of "6"
Spotted a tiny ugliness in a recently posted patch. This patch cuts it out. Jirka Signed-off-by: Jiri Pirko <jpirko@redhat.com> drivers/net/ne2k-pci.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ne2k-pci.c')
-rw-r--r--drivers/net/ne2k-pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ne2k-pci.c b/drivers/net/ne2k-pci.c
index 7d83896b8c26..3fcebb70151c 100644
--- a/drivers/net/ne2k-pci.c
+++ b/drivers/net/ne2k-pci.c
@@ -374,7 +374,7 @@ static int __devinit ne2k_pci_init_one (struct pci_dev *pdev,
dev->ethtool_ops = &ne2k_pci_ethtool_ops;
NS8390_init(dev, 0);
- memcpy(dev->dev_addr, SA_prom, 6);
+ memcpy(dev->dev_addr, SA_prom, dev->addr_len);
memcpy(dev->perm_addr, dev->dev_addr, dev->addr_len);
i = register_netdev(dev);