Partially make EdkModulePkg pass intel IPF compiler with /W4 /WX switched on.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2313 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -457,7 +457,6 @@ Cbi0DriverBindingStop (
|
||||
EFI_STATUS Status;
|
||||
EFI_USB_ATAPI_PROTOCOL *Cbi0AtapiProtocol;
|
||||
USB_CBI_DEVICE *UsbCbiDev;
|
||||
EFI_USB_IO_PROTOCOL *UsbIo;
|
||||
|
||||
//
|
||||
// Get our context back.
|
||||
@@ -476,8 +475,6 @@ Cbi0DriverBindingStop (
|
||||
|
||||
UsbCbiDev = USB_CBI_DEVICE_FROM_THIS (Cbi0AtapiProtocol);
|
||||
|
||||
UsbIo = UsbCbiDev->UsbIo;
|
||||
|
||||
Cbi0ReportStatusCode (
|
||||
UsbCbiDev->DevicePath,
|
||||
EFI_PROGRESS_CODE,
|
||||
@@ -850,11 +847,9 @@ Cbi0MassStorageReset (
|
||||
--*/
|
||||
{
|
||||
EFI_STATUS Status;
|
||||
EFI_USB_IO_PROTOCOL *UsbIo;
|
||||
USB_CBI_DEVICE *UsbCbiDev;
|
||||
|
||||
UsbCbiDev = USB_CBI_DEVICE_FROM_THIS (This);
|
||||
UsbIo = UsbCbiDev->UsbIo;
|
||||
|
||||
if (ExtendedVerification) {
|
||||
//
|
||||
|
@@ -400,7 +400,6 @@ CBI1DriverBindingStop (
|
||||
EFI_STATUS Status;
|
||||
EFI_USB_ATAPI_PROTOCOL *CBI1AtapiProtocol;
|
||||
USB_CBI_DEVICE *UsbCbiDev;
|
||||
EFI_USB_IO_PROTOCOL *UsbIo;
|
||||
|
||||
//
|
||||
// Get our context back.
|
||||
@@ -419,8 +418,6 @@ CBI1DriverBindingStop (
|
||||
|
||||
UsbCbiDev = USB_CBI_DEVICE_FROM_THIS (CBI1AtapiProtocol);
|
||||
|
||||
UsbIo = UsbCbiDev->UsbIo;
|
||||
|
||||
Cbi1ReportStatusCode (
|
||||
UsbCbiDev->DevicePath,
|
||||
EFI_PROGRESS_CODE,
|
||||
@@ -644,7 +641,6 @@ CBI1MassStorageReset (
|
||||
--*/
|
||||
{
|
||||
UINT8 ResetCommand[12];
|
||||
EFI_STATUS Status;
|
||||
EFI_USB_IO_PROTOCOL *UsbIo;
|
||||
USB_CBI_DEVICE *UsbCbiDev;
|
||||
UINT8 EndpointAddr;
|
||||
@@ -669,12 +665,12 @@ CBI1MassStorageReset (
|
||||
ResetCommand[0] = 0x1d;
|
||||
ResetCommand[1] = 0x04;
|
||||
|
||||
Status = CBI1CommandPhase (
|
||||
UsbCbiDev,
|
||||
ResetCommand,
|
||||
12,
|
||||
&Result
|
||||
);
|
||||
CBI1CommandPhase (
|
||||
UsbCbiDev,
|
||||
ResetCommand,
|
||||
12,
|
||||
&Result
|
||||
);
|
||||
|
||||
//
|
||||
// clear bulk in endpoint stall feature
|
||||
|
Reference in New Issue
Block a user