From 4fb58b0360fec97624992ec0e4e20a4df0aa5317 Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Wed, 10 Sep 2014 08:17:26 -0700 Subject: [PATCH] Don't check a staticly allocated array for null. Change-Id: I5568174f1a9d53078c2169cfd3401e43d88a7643 --- services/input/EventHub.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/input/EventHub.cpp b/services/input/EventHub.cpp index a302cd2dea85d..bf979d4a77887 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; }