]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg/Logo: rebase to ARRAY_SIZE()
authorLaszlo Ersek <lersek@redhat.com>
Wed, 26 Oct 2016 17:08:50 +0000 (19:08 +0200)
committerLaszlo Ersek <lersek@redhat.com>
Thu, 27 Oct 2016 09:10:57 +0000 (11:10 +0200)
Cc: Feng Tian <feng.tian@intel.com>
Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Cc: Star Zeng <star.zeng@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: Feng Tian <feng.tian@Intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
MdeModulePkg/Logo/Logo.c

index f0792addd3a9d8e9cffccaab90dd3af1d4c377ec..313dd4a7937daa8cedc9aba04b7556a4b2b216b4 100644 (file)
@@ -69,7 +69,7 @@ GetImage (
   }\r
 \r
   Current = *Instance;\r
-  if (Current >= sizeof (mLogos) / sizeof (mLogos[0])) {\r
+  if (Current >= ARRAY_SIZE (mLogos)) {\r
     return EFI_NOT_FOUND;\r
   }\r
 \r