summaryrefslogtreecommitdiffstats
path: root/OptionRomPkg/AtapiPassThruDxe/AtapiPassThru.c
diff options
context:
space:
mode:
Diffstat (limited to 'OptionRomPkg/AtapiPassThruDxe/AtapiPassThru.c')
-rw-r--r--OptionRomPkg/AtapiPassThruDxe/AtapiPassThru.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/OptionRomPkg/AtapiPassThruDxe/AtapiPassThru.c b/OptionRomPkg/AtapiPassThruDxe/AtapiPassThru.c
index 3578a1e445..e2654e5c25 100644
--- a/OptionRomPkg/AtapiPassThruDxe/AtapiPassThru.c
+++ b/OptionRomPkg/AtapiPassThruDxe/AtapiPassThru.c
@@ -1752,7 +1752,7 @@ Returns:
UINT8 ArrayLen;
OpCode = (UINT8 *) (Packet->Cdb);
- ArrayLen = (UINT8) (sizeof (gSupportedATAPICommands) / sizeof (gSupportedATAPICommands[0]));
+ ArrayLen = (UINT8) (ARRAY_SIZE (gSupportedATAPICommands));
for (Index = 0; (Index < ArrayLen) && (CompareMem (&gSupportedATAPICommands[Index], &gEndTable, sizeof (SCSI_COMMAND_SET)) != 0); Index++) {
@@ -1995,7 +1995,7 @@ Returns:
UINT8 ArrayLen;
OpCode = (UINT8 *) (Packet->Cdb);
- ArrayLen = (UINT8) (sizeof (gSupportedATAPICommands) / sizeof (gSupportedATAPICommands[0]));
+ ArrayLen = (UINT8) (ARRAY_SIZE (gSupportedATAPICommands));
for (Index = 0; (Index < ArrayLen) && (CompareMem (&gSupportedATAPICommands[Index], &gEndTable, sizeof (SCSI_COMMAND_SET)) != 0); Index++) {