summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Bus/Usb
diff options
context:
space:
mode:
authorxli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524>2009-02-06 05:34:53 +0000
committerxli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524>2009-02-06 05:34:53 +0000
commited3a31b51871b92af7174bd78c8d58330d0b0ab3 (patch)
treeea23beddd6f493d5c02d28d2c5f29a8c461737f8 /MdeModulePkg/Bus/Usb
parenta676b86b67ac1fcd1e64d814de7f5fc0f63e12de (diff)
downloadedk2-platforms-ed3a31b51871b92af7174bd78c8d58330d0b0ab3.tar.xz
Pass ECC check.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7455 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Bus/Usb')
-rw-r--r--MdeModulePkg/Bus/Usb/UsbKbDxe/KeyBoard.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/MdeModulePkg/Bus/Usb/UsbKbDxe/KeyBoard.c b/MdeModulePkg/Bus/Usb/UsbKbDxe/KeyBoard.c
index ae56e744ee..cf682505b9 100644
--- a/MdeModulePkg/Bus/Usb/UsbKbDxe/KeyBoard.c
+++ b/MdeModulePkg/Bus/Usb/UsbKbDxe/KeyBoard.c
@@ -611,7 +611,7 @@ SetKeyboardLayoutEvent (
NsKey = KeyDescriptor + 1;
for (Index2 = Index + 1; Index2 < KeyboardLayout->DescriptorCount; Index2++) {
CopyMem (&TempKey, NsKey, sizeof (EFI_KEY_DESCRIPTOR));
- if (TempKey.Modifier & EFI_NS_KEY_DEPENDENCY_MODIFIER) {
+ if (TempKey.Modifier == EFI_NS_KEY_DEPENDENCY_MODIFIER) {
KeyCount++;
} else {
break;
@@ -1654,7 +1654,7 @@ UsbKeyCodeToEfiInputKey (
}
}
- if (KeyDescriptor->AffectedAttribute & EFI_AFFECTED_BY_NUM_LOCK) {
+ if ((KeyDescriptor->AffectedAttribute & EFI_AFFECTED_BY_NUM_LOCK) != 0) {
//
// For key affected by NumLock, if NumLock is on and Shift is not pressed, then it means
// normal key, instead of original control key. So the ScanCode should be cleaned.