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;
|
USB_SCSI_MODE_SENSE6_PARA_HEADER ModeParaHeader;
|
||||||
EFI_BLOCK_IO_MEDIA *Media;
|
EFI_BLOCK_IO_MEDIA *Media;
|
||||||
|
|
||||||
CopyMem (
|
Media = &UsbMass->BlockIoMedia;
|
||||||
&Media,
|
|
||||||
&(UsbMass->BlockIoMedia),
|
|
||||||
sizeof (EFI_BLOCK_IO_MEDIA)
|
|
||||||
);
|
|
||||||
|
|
||||||
ZeroMem (&ModeSenseCmd, sizeof (USB_SCSI_MODE_SENSE6_CMD));
|
ZeroMem (&ModeSenseCmd, sizeof (USB_SCSI_MODE_SENSE6_CMD));
|
||||||
ZeroMem (&ModeParaHeader, sizeof (USB_SCSI_MODE_SENSE6_PARA_HEADER));
|
ZeroMem (&ModeParaHeader, sizeof (USB_SCSI_MODE_SENSE6_PARA_HEADER));
|
||||||
|
@ -602,12 +598,7 @@ UsbBootGetParams (
|
||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
UINT8 CmdSet;
|
UINT8 CmdSet;
|
||||||
|
|
||||||
CopyMem (
|
Media = &(UsbMass->BlockIoMedia);
|
||||||
&Media,
|
|
||||||
&(UsbMass->BlockIoMedia),
|
|
||||||
sizeof (EFI_BLOCK_IO_MEDIA)
|
|
||||||
);
|
|
||||||
|
|
||||||
CmdSet = ((EFI_USB_INTERFACE_DESCRIPTOR *) (UsbMass->Context))->InterfaceSubClass;
|
CmdSet = ((EFI_USB_INTERFACE_DESCRIPTOR *) (UsbMass->Context))->InterfaceSubClass;
|
||||||
|
|
||||||
Status = UsbBootInquiry (UsbMass);
|
Status = UsbBootInquiry (UsbMass);
|
||||||
|
|
Loading…
Reference in New Issue