summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
e72b409)
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>
//The lower baud rate supported by the serial device will be selected without exceeding the unsupported BaudRate parameter\r
// \r
\r
//The lower baud rate supported by the serial device will be selected without exceeding the unsupported BaudRate parameter\r
// \r
\r
- for (Index = 1; Index < (sizeof (mBaudRateCurrentSupport) / sizeof (mBaudRateCurrentSupport[0])); Index++) {\r
+ for (Index = 1; Index < (ARRAY_SIZE (mBaudRateCurrentSupport)); Index++) {\r
if (BaudRate < mBaudRateCurrentSupport[Index]) {\r
BaudRate = mBaudRateCurrentSupport[Index-1];\r
break;\r
if (BaudRate < mBaudRateCurrentSupport[Index]) {\r
BaudRate = mBaudRateCurrentSupport[Index-1];\r
break;\r