OSDN Git Service
(root)
/
android-x86
/
frameworks-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8085477
)
Don't check a staticly allocated array for null.
author
Dan Albert
<danalbert@google.com>
Wed, 10 Sep 2014 15:17:26 +0000
(08:17 -0700)
committer
Dan Albert
<danalbert@google.com>
Wed, 10 Sep 2014 15:17:30 +0000
(08:17 -0700)
Change-Id: I5568174f1a9d53078c2169cfd3401e43d88a7643
services/input/EventHub.cpp
patch
|
blob
|
history
diff --git
a/services/input/EventHub.cpp
b/services/input/EventHub.cpp
index
a302cd2
..
bf979d4
100644
(file)
--- a/
services/input/EventHub.cpp
+++ b/
services/input/EventHub.cpp
@@
-1381,7
+1381,7
@@
void EventHub::releaseControllerNumberLocked(Device* device) {
bool EventHub::hasKeycodeLocked(Device* device, int keycode) const {
- if (!device->keyMap.haveKeyLayout()
|| !device->keyBitmask
) {
+ if (!device->keyMap.haveKeyLayout()) {
return false;
}