diff options
author | vanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-01-02 02:34:20 +0000 |
---|---|---|
committer | vanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-01-02 02:34:20 +0000 |
commit | ca12415ac9706b100db02886ccadb7cb846348a3 (patch) | |
tree | f8740363302477647d1940506178549389796413 /MdeModulePkg/Bus/Usb/UsbMassStorageDxe | |
parent | af2bb549adeefd4e4ae266b8574270218dd5da7c (diff) | |
download | edk2-platforms-ca12415ac9706b100db02886ccadb7cb846348a3.tar.xz |
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
Diffstat (limited to 'MdeModulePkg/Bus/Usb/UsbMassStorageDxe')
-rw-r--r-- | MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassBoot.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassBoot.c b/MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassBoot.c index 91fcbec33b..1299059c07 100644 --- a/MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassBoot.c +++ b/MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassBoot.c @@ -535,16 +535,12 @@ UsbScsiModeSense ( IN USB_MASS_DEVICE *UsbMass
)
{
- EFI_STATUS Status;
+ EFI_STATUS Status;
USB_SCSI_MODE_SENSE6_CMD ModeSenseCmd;
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);
|