diff options
author | Laszlo Ersek <lersek@redhat.com> | 2016-10-26 18:29:41 +0200 |
---|---|---|
committer | Laszlo Ersek <lersek@redhat.com> | 2016-10-27 11:10:54 +0200 |
commit | abcdd98be3ea23843c23808bd6433fdcad1a0eb3 (patch) | |
tree | 9f3cb580ef1331367267a21991fd6471846cd5c3 | |
parent | bd4b5962d940017bb3054c7a517576daeda4eed7 (diff) | |
download | edk2-platforms-abcdd98be3ea23843c23808bd6433fdcad1a0eb3.tar.xz |
EdkCompatibilityPkg/FrameworkHiiOnUefiHiiThunk: rebase to ARRAY_SIZE()
Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
-rw-r--r-- | EdkCompatibilityPkg/Compatibility/FrameworkHiiOnUefiHiiThunk/OpcodeCreation.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/EdkCompatibilityPkg/Compatibility/FrameworkHiiOnUefiHiiThunk/OpcodeCreation.c b/EdkCompatibilityPkg/Compatibility/FrameworkHiiOnUefiHiiThunk/OpcodeCreation.c index dd07dfcf40..a3ddce9b44 100644 --- a/EdkCompatibilityPkg/Compatibility/FrameworkHiiOnUefiHiiThunk/OpcodeCreation.c +++ b/EdkCompatibilityPkg/Compatibility/FrameworkHiiOnUefiHiiThunk/OpcodeCreation.c @@ -51,7 +51,7 @@ QuestionOpFwToUefi ( {
UINTN Index;
- for (Index = 0; Index < sizeof (QuestionOpcodeMap) / sizeof (QuestionOpcodeMap[0]); Index++) {
+ for (Index = 0; Index < ARRAY_SIZE (QuestionOpcodeMap); Index++) {
if (FwOp == QuestionOpcodeMap[Index].FrameworkIfrOp) {
*UefiOp = QuestionOpcodeMap[Index].UefiIfrOp;
return EFI_SUCCESS;
|