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
/
fsl_mcdmafec.c
diff --git
a/drivers/net/fsl_mcdmafec.c
b/drivers/net/fsl_mcdmafec.c
index
1ad952d
..
6391f9b
100644
(file)
--- a/
drivers/net/fsl_mcdmafec.c
+++ b/
drivers/net/fsl_mcdmafec.c
@@
-504,7
+504,7
@@
int mcdmafec_initialize(bd_t * bis)
u32 tmp = CONFIG_SYS_INTSRAM + 0x2000;
#endif
- for (i = 0; i <
sizeof(fec_info) / sizeof(fec_info[0]
); i++) {
+ for (i = 0; i <
ARRAY_SIZE(fec_info
); i++) {
dev =
(struct eth_device *)memalign(CONFIG_SYS_CACHELINE_SIZE,