Message ID | 20161026190504.9888-11-lersek@redhat.com |
---|---|
State | Accepted |
Commit | 62bea967beaf7ae1f22a6bbe8def63efed1f4a14 |
Headers | show |
On 26 October 2016 at 20:04, Laszlo Ersek <lersek@redhat.com> wrote: > Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org> > Contributed-under: TianoCore Contribution Agreement 1.0 > Signed-off-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> > --- > ArmVirtPkg/Library/NorFlashQemuLib/NorFlashQemuLib.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/ArmVirtPkg/Library/NorFlashQemuLib/NorFlashQemuLib.c b/ArmVirtPkg/Library/NorFlashQemuLib/NorFlashQemuLib.c > index 7f346077e6b5..d63a2d989f69 100644 > --- a/ArmVirtPkg/Library/NorFlashQemuLib/NorFlashQemuLib.c > +++ b/ArmVirtPkg/Library/NorFlashQemuLib/NorFlashQemuLib.c > @@ -46,6 +46,6 @@ NorFlashPlatformGetDevices ( > ) > { > *NorFlashDescriptions = mNorFlashDevices; > - *Count = sizeof (mNorFlashDevices) / sizeof (mNorFlashDevices[0]); > + *Count = ARRAY_SIZE (mNorFlashDevices); > return EFI_SUCCESS; > } > -- > 2.9.2 > > _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel
diff --git a/ArmVirtPkg/Library/NorFlashQemuLib/NorFlashQemuLib.c b/ArmVirtPkg/Library/NorFlashQemuLib/NorFlashQemuLib.c index 7f346077e6b5..d63a2d989f69 100644 --- a/ArmVirtPkg/Library/NorFlashQemuLib/NorFlashQemuLib.c +++ b/ArmVirtPkg/Library/NorFlashQemuLib/NorFlashQemuLib.c @@ -46,6 +46,6 @@ NorFlashPlatformGetDevices ( ) { *NorFlashDescriptions = mNorFlashDevices; - *Count = sizeof (mNorFlashDevices) / sizeof (mNorFlashDevices[0]); + *Count = ARRAY_SIZE (mNorFlashDevices); return EFI_SUCCESS; }
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek <lersek@redhat.com> --- ArmVirtPkg/Library/NorFlashQemuLib/NorFlashQemuLib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.9.2 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel