mirror of https://github.com/acidanthera/audk.git
ShellPkg/UefiShellLevel2CommandsLib: rebase to ARRAY_SIZE()
Cc: Jaben Carsey <jaben.carsey@intel.com> 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: Jaben Carsey <jaben.carsey@intel.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
This commit is contained in:
parent
cb4669e051
commit
fe6c62fc0c
|
@ -942,7 +942,7 @@ ShellCommandRunTimeZone (
|
|||
//
|
||||
if (ShellCommandLineGetFlag (Package, L"-f")) {
|
||||
for ( LoopVar = 0
|
||||
; LoopVar < sizeof (TimeZoneList) / sizeof (TimeZoneList[0])
|
||||
; LoopVar < ARRAY_SIZE (TimeZoneList)
|
||||
; LoopVar++
|
||||
){
|
||||
if (TheTime.TimeZone == TimeZoneList[LoopVar].TimeZone) {
|
||||
|
|
Loading…
Reference in New Issue