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
arch/powerpc: Simplify some calculations using ARRAY_SIZE() macro.
[platform/kernel/u-boot.git]
/
arch
/
powerpc
/
cpu
/
mpc85xx
/
ether_fcc.c
diff --git
a/arch/powerpc/cpu/mpc85xx/ether_fcc.c
b/arch/powerpc/cpu/mpc85xx/ether_fcc.c
index
14358ae
..
51f1bee
100644
(file)
--- a/
arch/powerpc/cpu/mpc85xx/ether_fcc.c
+++ b/
arch/powerpc/cpu/mpc85xx/ether_fcc.c
@@
-424,7
+424,7
@@
int fec_initialize(bd_t *bis)
struct eth_device* dev;
int i;
- for (i = 0; i <
sizeof(ether_fcc_info) / sizeof(ether_fcc_info[0]
); i++)
+ for (i = 0; i <
ARRAY_SIZE(ether_fcc_info
); i++)
{
dev = (struct eth_device*) malloc(sizeof *dev);
memset(dev, 0, sizeof *dev);