summaryrefslogtreecommitdiffstats
path: root/Nt32Pkg/WinNtSerialIoDxe/WinNtSerialIo.c
diff options
context:
space:
mode:
Diffstat (limited to 'Nt32Pkg/WinNtSerialIoDxe/WinNtSerialIo.c')
-rw-r--r--Nt32Pkg/WinNtSerialIoDxe/WinNtSerialIo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Nt32Pkg/WinNtSerialIoDxe/WinNtSerialIo.c b/Nt32Pkg/WinNtSerialIoDxe/WinNtSerialIo.c
index 0dc031393e..23d3329d9d 100644
--- a/Nt32Pkg/WinNtSerialIoDxe/WinNtSerialIo.c
+++ b/Nt32Pkg/WinNtSerialIoDxe/WinNtSerialIo.c
@@ -984,7 +984,7 @@ Returns:
//The lower baud rate supported by the serial device will be selected without exceeding the unsupported BaudRate parameter
//
- for (Index = 1; Index < (sizeof (mBaudRateCurrentSupport) / sizeof (mBaudRateCurrentSupport[0])); Index++) {
+ for (Index = 1; Index < (ARRAY_SIZE (mBaudRateCurrentSupport)); Index++) {
if (BaudRate < mBaudRateCurrentSupport[Index]) {
BaudRate = mBaudRateCurrentSupport[Index-1];
break;