aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/tulip
diff options
context:
space:
mode:
authorDenis Cheng <crquan@gmail.com>2007-09-02 06:30:18 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:51:15 -0400
commitff8ac60948ba819b89e9c87083e8050fc2f89999 (patch)
tree611975d22d7ddd8c49a073c61e6e4b7c9523fedb /drivers/net/tulip
parent10d024c1b2fd58af8362670d7d6e5ae52fc33353 (diff)
drivers/net/: all drivers/net/ cleanup with ARRAY_SIZE
Signed-off-by: Denis Cheng <crquan@gmail.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/tulip')
-rw-r--r--drivers/net/tulip/de4x5.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/tulip/de4x5.c b/drivers/net/tulip/de4x5.c
index ba7f47c2dcff..ee4215ca63f0 100644
--- a/drivers/net/tulip/de4x5.c
+++ b/drivers/net/tulip/de4x5.c
@@ -3945,7 +3945,7 @@ create_packet(struct net_device *dev, char *frame, int len)
3945static int 3945static int
3946EISA_signature(char *name, struct device *device) 3946EISA_signature(char *name, struct device *device)
3947{ 3947{
3948 int i, status = 0, siglen = sizeof(de4x5_signatures)/sizeof(c_char *); 3948 int i, status = 0, siglen = ARRAY_SIZE(de4x5_signatures);
3949 struct eisa_device *edev; 3949 struct eisa_device *edev;
3950 3950
3951 *name = '\0'; 3951 *name = '\0';
@@ -3966,7 +3966,7 @@ EISA_signature(char *name, struct device *device)
3966static int 3966static int
3967PCI_signature(char *name, struct de4x5_private *lp) 3967PCI_signature(char *name, struct de4x5_private *lp)
3968{ 3968{
3969 int i, status = 0, siglen = sizeof(de4x5_signatures)/sizeof(c_char *); 3969 int i, status = 0, siglen = ARRAY_SIZE(de4x5_signatures);
3970 3970
3971 if (lp->chipset == DC21040) { 3971 if (lp->chipset == DC21040) {
3972 strcpy(name, "DE434/5"); 3972 strcpy(name, "DE434/5");
@@ -5072,7 +5072,7 @@ mii_get_phy(struct net_device *dev)
5072{ 5072{
5073 struct de4x5_private *lp = netdev_priv(dev); 5073 struct de4x5_private *lp = netdev_priv(dev);
5074 u_long iobase = dev->base_addr; 5074 u_long iobase = dev->base_addr;
5075 int i, j, k, n, limit=sizeof(phy_info)/sizeof(struct phy_table); 5075 int i, j, k, n, limit=ARRAY_SIZE(phy_info);
5076 int id; 5076 int id;
5077 5077
5078 lp->active = 0; 5078 lp->active = 0;