mirror of https://github.com/acidanthera/audk.git
Fixed the porting issue. That leads uninitialized variable.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4458 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
af2bb549ad
commit
ca12415ac9
|
@ -540,11 +540,7 @@ UsbScsiModeSense (
|
|||
USB_SCSI_MODE_SENSE6_PARA_HEADER ModeParaHeader;
|
||||
EFI_BLOCK_IO_MEDIA *Media;
|
||||
|
||||
CopyMem (
|
||||
&Media,
|
||||
&(UsbMass->BlockIoMedia),
|
||||
sizeof (EFI_BLOCK_IO_MEDIA)
|
||||
);
|
||||
Media = &UsbMass->BlockIoMedia;
|
||||
|
||||
ZeroMem (&ModeSenseCmd, sizeof (USB_SCSI_MODE_SENSE6_CMD));
|
||||
ZeroMem (&ModeParaHeader, sizeof (USB_SCSI_MODE_SENSE6_PARA_HEADER));
|
||||
|
@ -602,12 +598,7 @@ UsbBootGetParams (
|
|||
EFI_STATUS Status;
|
||||
UINT8 CmdSet;
|
||||
|
||||
CopyMem (
|
||||
&Media,
|
||||
&(UsbMass->BlockIoMedia),
|
||||
sizeof (EFI_BLOCK_IO_MEDIA)
|
||||
);
|
||||
|
||||
Media = &(UsbMass->BlockIoMedia);
|
||||
CmdSet = ((EFI_USB_INTERFACE_DESCRIPTOR *) (UsbMass->Context))->InterfaceSubClass;
|
||||
|
||||
Status = UsbBootInquiry (UsbMass);
|
||||
|
|
Loading…
Reference in New Issue