OSDN Git Service

Don't check a staticly allocated array for null.
authorDan Albert <danalbert@google.com>
Wed, 10 Sep 2014 15:17:26 +0000 (08:17 -0700)
committerDan Albert <danalbert@google.com>
Wed, 10 Sep 2014 15:17:30 +0000 (08:17 -0700)
Change-Id: I5568174f1a9d53078c2169cfd3401e43d88a7643

services/input/EventHub.cpp

index a302cd2..bf979d4 100644 (file)
@@ -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;
     }