Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4fb58b03 authored by Dan Albert's avatar Dan Albert
Browse files

Don't check a staticly allocated array for null.

Change-Id: I5568174f1a9d53078c2169cfd3401e43d88a7643
parent 8085477f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
    }