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>
//\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