diff options
author | Dan Albert <danalbert@google.com> | 2014-09-10 08:17:26 -0700 |
---|---|---|
committer | Dan Albert <danalbert@google.com> | 2014-09-10 08:17:30 -0700 |
commit | 4fb58b0360fec97624992ec0e4e20a4df0aa5317 (patch) | |
tree | 43be3bd5e2273fb320beea455e2f6c9d2d109aef | |
parent | 8085477fb98eab36bbc8c3e9add76f398235b469 (diff) | |
download | base-4fb58b0360fec97624992ec0e4e20a4df0aa5317.tar.gz |
Don't check a staticly allocated array for null.
Change-Id: I5568174f1a9d53078c2169cfd3401e43d88a7643
-rw-r--r-- | services/input/EventHub.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/input/EventHub.cpp b/services/input/EventHub.cpp index a302cd2dea85..bf979d4a7788 100644 --- 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; } |