mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-28 16:14:04 +02:00
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>
This commit is contained in:
parent
e72b409784
commit
ff43fd5ddf
@ -984,7 +984,7 @@ Returns:
|
|||||||
//The lower baud rate supported by the serial device will be selected without exceeding the unsupported BaudRate parameter
|
//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]) {
|
if (BaudRate < mBaudRateCurrentSupport[Index]) {
|
||||||
BaudRate = mBaudRateCurrentSupport[Index-1];
|
BaudRate = mBaudRateCurrentSupport[Index-1];
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user