From ac1273090c2ac775d5a7959f5fd6dc75aeba39df Mon Sep 17 00:00:00 2001 From: Laszlo Ersek Date: Wed, 26 Oct 2016 19:08:50 +0200 Subject: MdeModulePkg/Logo: rebase to ARRAY_SIZE() Cc: Feng Tian Cc: Ruiyu Ni Cc: Star Zeng Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Ruiyu Ni Reviewed-by: Feng Tian Reviewed-by: Star Zeng Reviewed-by: Jordan Justen --- MdeModulePkg/Logo/Logo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'MdeModulePkg') diff --git a/MdeModulePkg/Logo/Logo.c b/MdeModulePkg/Logo/Logo.c index f0792addd3..313dd4a793 100644 --- a/MdeModulePkg/Logo/Logo.c +++ b/MdeModulePkg/Logo/Logo.c @@ -69,7 +69,7 @@ GetImage ( } Current = *Instance; - if (Current >= sizeof (mLogos) / sizeof (mLogos[0])) { + if (Current >= ARRAY_SIZE (mLogos)) { return EFI_NOT_FOUND; } -- cgit v1.2.3