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:
Laszlo Ersek 2016-10-26 19:28:24 +02:00
parent cb4669e051
commit fe6c62fc0c
1 changed files with 1 additions and 1 deletions

View File

@ -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) {