summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg/Bus/Usb/UsbKbDxe/KeyBoard.c
diff options
context:
space:
mode:
authorgikidy <gikidy@6f19259b-4bc3-4df7-8a09-765794883524>2008-12-26 09:18:12 +0000
committergikidy <gikidy@6f19259b-4bc3-4df7-8a09-765794883524>2008-12-26 09:18:12 +0000
commite15c65a371286026d80fab12a8382f901adf059f (patch)
treee2cccfef7b631fade37f33f56c05a470565b824d /MdeModulePkg/Bus/Usb/UsbKbDxe/KeyBoard.c
parentf51f40603727bfc034746a93f7f91b302eb9c4eb (diff)
downloadedk2-e15c65a371286026d80fab12a8382f901adf059f.tar.gz
edk2-e15c65a371286026d80fab12a8382f901adf059f.tar.bz2
edk2-e15c65a371286026d80fab12a8382f901adf059f.zip
Check Library usage and fix some typo.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7140 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Bus/Usb/UsbKbDxe/KeyBoard.c')
-rw-r--r--MdeModulePkg/Bus/Usb/UsbKbDxe/KeyBoard.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/MdeModulePkg/Bus/Usb/UsbKbDxe/KeyBoard.c b/MdeModulePkg/Bus/Usb/UsbKbDxe/KeyBoard.c
index 3acdd76187..79598c5a01 100644
--- a/MdeModulePkg/Bus/Usb/UsbKbDxe/KeyBoard.c
+++ b/MdeModulePkg/Bus/Usb/UsbKbDxe/KeyBoard.c
@@ -477,17 +477,19 @@ FindUsbNsKey (
)
{
LIST_ENTRY *Link;
+ LIST_ENTRY *NsKeyList;
USB_NS_KEY *UsbNsKey;
-
- Link = GetFirstNode (&UsbKeyboardDevice->NsKeyList);
- while (!IsNull (&UsbKeyboardDevice->NsKeyList, Link)) {
+
+ NsKeyList = &UsbKeyboardDevice->NsKeyList;
+ Link = GetFirstNode (NsKeyList);
+ while (!IsNull (NsKeyList, Link)) {
UsbNsKey = USB_NS_KEY_FORM_FROM_LINK (Link);
if (UsbNsKey->NsKey[0].Key == KeyDescriptor->Key) {
return UsbNsKey;
}
- Link = GetNextNode (&UsbKeyboardDevice->NsKeyList, Link);
+ Link = GetNextNode (NsKeyList, Link);
}
return NULL;
@@ -644,7 +646,7 @@ SetKeyboardLayoutEvent (
KeyDescriptor = GetKeyDescriptor (UsbKeyboardDevice, 0x28);
CopyMem (TableEntry, KeyDescriptor, sizeof (EFI_KEY_DESCRIPTOR));
- gBS->FreePool (KeyboardLayout);
+ FreePool (KeyboardLayout);
}
/**
@@ -1921,7 +1923,7 @@ USBKeyboardRepeatHandler (
);
//
- // Set repeate rate for next repeat key generation.
+ // Set repeat rate for next repeat key generation.
//
gBS->SetTimer (
UsbKeyboardDevice->RepeatTimer,