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:
@@ -210,9 +210,6 @@ InitUSBKeyboard (
|
||||
UINT8 Duration;
|
||||
EFI_STATUS Status;
|
||||
UINT32 TransferResult;
|
||||
EFI_USB_IO_PROTOCOL *UsbIo;
|
||||
|
||||
UsbIo = UsbKeyboardDevice->UsbIo;
|
||||
|
||||
KbdReportStatusCode (
|
||||
UsbKeyboardDevice->DevicePath,
|
||||
@@ -360,19 +357,16 @@ KeyboardHandler (
|
||||
UINT8 Index;
|
||||
UINT8 Index2;
|
||||
BOOLEAN Down;
|
||||
EFI_STATUS Status;
|
||||
BOOLEAN KeyRelease;
|
||||
BOOLEAN KeyPress;
|
||||
UINT8 SavedTail;
|
||||
USB_KEY UsbKey;
|
||||
UINT8 NewRepeatKey;
|
||||
UINT32 UsbStatus;
|
||||
UINT8 *DataPtr;
|
||||
|
||||
ASSERT (Context);
|
||||
|
||||
NewRepeatKey = 0;
|
||||
DataPtr = (UINT8 *) Data;
|
||||
UsbKeyboardDevice = (USB_KB_DEV *) Context;
|
||||
UsbIo = UsbKeyboardDevice->UsbIo;
|
||||
|
||||
@@ -412,15 +406,15 @@ KeyboardHandler (
|
||||
// Delete & Submit this interrupt again
|
||||
//
|
||||
|
||||
Status = UsbIo->UsbAsyncInterruptTransfer (
|
||||
UsbIo,
|
||||
UsbKeyboardDevice->IntEndpointDescriptor.EndpointAddress,
|
||||
FALSE,
|
||||
0,
|
||||
0,
|
||||
NULL,
|
||||
NULL
|
||||
);
|
||||
UsbIo->UsbAsyncInterruptTransfer (
|
||||
UsbIo,
|
||||
UsbKeyboardDevice->IntEndpointDescriptor.EndpointAddress,
|
||||
FALSE,
|
||||
0,
|
||||
0,
|
||||
NULL,
|
||||
NULL
|
||||
);
|
||||
|
||||
gBS->SetTimer (
|
||||
UsbKeyboardDevice->DelayedRecoveryEvent,
|
||||
|
Reference in New Issue
Block a user