PerformancePkg/Dp_App: rebase to ARRAY_SIZE()
Cc: Daryl McDaniel <edk2-lists@mc2research.org> Cc: Jaben Carsey <jaben.carsey@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Jaben Carsey <jaben.carsey@intel.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
This commit is contained in:
@@ -114,7 +114,7 @@ InitialShellParamList( void )
|
||||
//
|
||||
// Allocate one more for the end tag.
|
||||
//
|
||||
ListLength = sizeof (ParamList) / sizeof (ParamList[0]) + 1;
|
||||
ListLength = ARRAY_SIZE (ParamList) + 1;
|
||||
DpParamList = AllocatePool (sizeof (SHELL_PARAM_ITEM) * ListLength);
|
||||
ASSERT (DpParamList != NULL);
|
||||
|
||||
|
Reference in New Issue
Block a user