git.openpandora.org
/
pandora-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
[pandora-u-boot.git]
/
drivers
/
net
/
npe
/
IxOsalIoMem.c
diff --git
a/drivers/net/npe/IxOsalIoMem.c
b/drivers/net/npe/IxOsalIoMem.c
index
34df92b
..
087fdf3
100644
(file)
--- a/
drivers/net/npe/IxOsalIoMem.c
+++ b/
drivers/net/npe/IxOsalIoMem.c
@@
-66,8
+66,7
@@
ixOsalMemMapFind (UINT32 requestedAddress,
{
UINT32 mapIndex;
- UINT32 numMapElements =
- sizeof (ixOsalGlobalMemoryMap) / sizeof (IxOsalMemoryMap);
+ UINT32 numMapElements = ARRAY_SIZE(ixOsalGlobalMemoryMap);
for (mapIndex = 0; mapIndex < numMapElements; mapIndex++)
{