Don't check a staticly allocated array for null.

Change-Id: I5568174f1a9d53078c2169cfd3401e43d88a7643
This commit is contained in:
Dan Albert
2014-09-10 08:17:26 -07:00
parent 8085477fb9
commit 4fb58b0360

View 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;
}