The commit makes sure that the elements in array 'SwitchResp' get
initialized before being used.
Cc: Feng Tian <feng.tian@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
//\r
// Get the supported bus speed from SWITCH cmd return data group #1.\r
//\r
+ ZeroMem (SwitchResp, sizeof (SwitchResp));\r
Status = SdPeimSwitch (Slot, 0xF, 0xF, 0xF, 0xF, FALSE, SwitchResp);\r
if (EFI_ERROR (Status)) {\r
return Status;\r