]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Library/UefiBootManagerLib/BmConsole.c
MdeModulePkg/UefiBootManagerLib: rebase to ARRAY_SIZE()
[mirror_edk2.git] / MdeModulePkg / Library / UefiBootManagerLib / BmConsole.c
index 4059dac49e2e0dd10edc6df2306aea8244845638..80511814eec5b0a3bdac13895c3bbfafcdb94956 100644 (file)
@@ -430,7 +430,7 @@ EfiBootManagerUpdateConsoleVariable (
   EFI_DEVICE_PATH_PROTOCOL  *NewDevicePath;\r
   EFI_DEVICE_PATH_PROTOCOL  *TempNewDevicePath;\r
 \r
-  if (ConsoleType >= sizeof (mConVarName) / sizeof (mConVarName[0])) {\r
+  if (ConsoleType >= ARRAY_SIZE (mConVarName)) {\r
     return EFI_INVALID_PARAMETER;\r
   }\r
 \r