]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg/SetupBrowserDxe: Remove the useless check
authorDandan Bi <dandan.bi@intel.com>
Fri, 22 Apr 2016 03:29:12 +0000 (11:29 +0800)
committerStar Zeng <star.zeng@intel.com>
Mon, 25 Apr 2016 07:03:05 +0000 (15:03 +0800)
When the type of HiiValue is BUFFER Type, the BufferValue
of the related question can not be NULL, so can remove the
check.

Cc: Qiu Shumin <shumin.qiu@intel.com>
Cc: Eric Dong <eric.dong@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Qiu Shumin <shumin.qiu@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
MdeModulePkg/Universal/SetupBrowserDxe/Setup.c

index c36588e4bf07e9e5bab6a2c058780be30341f5cc..5887e0f3be79a6856fcb74213195e24486598828 100644 (file)
@@ -3919,7 +3919,7 @@ GetQuestionDefault (
   //\r
   HiiValue = &Question->HiiValue;\r
   TypeValue = &HiiValue->Value;\r
-  if (HiiValue->Type == EFI_IFR_TYPE_BUFFER && Question->BufferValue != NULL) {\r
+  if (HiiValue->Type == EFI_IFR_TYPE_BUFFER) {\r
     //\r
     // For orderedlist, need to pass the BufferValue to Callback function.\r
     //\r