diff options
author | Laszlo Ersek <lersek@redhat.com> | 2016-10-26 19:08:50 +0200 |
---|---|---|
committer | Laszlo Ersek <lersek@redhat.com> | 2016-10-27 11:10:57 +0200 |
commit | ac1273090c2ac775d5a7959f5fd6dc75aeba39df (patch) | |
tree | 2752a8464b7b904780dafe03c49cc1387c7a6243 /MdeModulePkg/Logo | |
parent | fe69b398700860e718baa01eb4c76c338ea5f9e1 (diff) | |
download | edk2-platforms-ac1273090c2ac775d5a7959f5fd6dc75aeba39df.tar.xz |
MdeModulePkg/Logo: rebase to ARRAY_SIZE()
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>
Diffstat (limited to 'MdeModulePkg/Logo')
-rw-r--r-- | MdeModulePkg/Logo/Logo.c | 2 |
1 files changed, 1 insertions, 1 deletions
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;
}
|