summaryrefslogtreecommitdiff
path: root/drivers/net/npe/IxOsalIoMem.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/npe/IxOsalIoMem.c')
-rw-r--r--drivers/net/npe/IxOsalIoMem.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/npe/IxOsalIoMem.c b/drivers/net/npe/IxOsalIoMem.c
index 34df92b..087fdf3 100644
--- 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++)
{