Don't check a staticly allocated array for null.
Change-Id: I5568174f1a9d53078c2169cfd3401e43d88a7643
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user