projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
net: Use ARRAY_SIZE at appropriate places
[platform/kernel/u-boot.git]
/
drivers
/
net
/
ax88180.c
diff --git
a/drivers/net/ax88180.c
b/drivers/net/ax88180.c
index
f501768
..
7f0cfe5
100644
(file)
--- a/
drivers/net/ax88180.c
+++ b/
drivers/net/ax88180.c
@@
-157,7
+157,7
@@
static void ax88180_mac_reset (struct eth_device *dev)
OUTW (dev, MISC_RESET_MAC, MISC);
tmpval = INW (dev, MISC);
- for (i = 0; i <
(sizeof (program_seq) / sizeof (program_seq[0])
); i++)
+ for (i = 0; i <
ARRAY_SIZE(program_seq
); i++)
OUTW (dev, program_seq[i].value, program_seq[i].offset);
}