diff options
author | Laszlo Ersek <lersek@redhat.com> | 2016-10-26 19:18:58 +0200 |
---|---|---|
committer | Laszlo Ersek <lersek@redhat.com> | 2016-10-27 11:10:58 +0200 |
commit | ff43fd5ddfba8118639aa1da6c3745df8d5993c2 (patch) | |
tree | fb24813e94611de9575f5d1eadde01a147d55104 /Nt32Pkg | |
parent | e72b40978442032cbeab7c04acb79bfa6292f597 (diff) | |
download | edk2-ff43fd5ddfba8118639aa1da6c3745df8d5993c2.tar.gz edk2-ff43fd5ddfba8118639aa1da6c3745df8d5993c2.tar.bz2 edk2-ff43fd5ddfba8118639aa1da6c3745df8d5993c2.zip |
Nt32Pkg/WinNtSerialIoDxe: rebase to ARRAY_SIZE()
Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Diffstat (limited to 'Nt32Pkg')
-rw-r--r-- | Nt32Pkg/WinNtSerialIoDxe/WinNtSerialIo.c | 2 |
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;
|