summaryrefslogtreecommitdiff
path: root/Vlv2TbltDevicePkg
diff options
context:
space:
mode:
Diffstat (limited to 'Vlv2TbltDevicePkg')
-rw-r--r--Vlv2TbltDevicePkg/PlatformPei/BootMode.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Vlv2TbltDevicePkg/PlatformPei/BootMode.c b/Vlv2TbltDevicePkg/PlatformPei/BootMode.c
index 4d933a09db..95be1c0f28 100644
--- a/Vlv2TbltDevicePkg/PlatformPei/BootMode.c
+++ b/Vlv2TbltDevicePkg/PlatformPei/BootMode.c
@@ -372,13 +372,13 @@ PrioritizeBootMode (
// Find the position of the current boot mode in our priority array
//
for ( CurrentIndex = 0;
- CurrentIndex < sizeof (mBootModePriority) / sizeof (mBootModePriority[0]);
+ CurrentIndex < ARRAY_SIZE (mBootModePriority);
CurrentIndex++) {
if (mBootModePriority[CurrentIndex] == *CurrentBootMode) {
break;
}
}
- if (CurrentIndex >= sizeof (mBootModePriority) / sizeof (mBootModePriority[0])) {
+ if (CurrentIndex >= ARRAY_SIZE (mBootModePriority)) {
return EFI_NOT_FOUND;
}
@@ -386,7 +386,7 @@ PrioritizeBootMode (
// Find the position of the new boot mode in our priority array
//
for ( NewIndex = 0;
- NewIndex < sizeof (mBootModePriority) / sizeof (mBootModePriority[0]);
+ NewIndex < ARRAY_SIZE (mBootModePriority);
NewIndex++) {
if (mBootModePriority[NewIndex] == NewBootMode) {
//