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

Commit accddd9c authored by Chih-hung Hsieh's avatar Chih-hung Hsieh Committed by Android Git Automerger
Browse files

am 947a6adf: Merge "Remove comparisons that can\'t be true"

* commit '947a6adf':
  Remove comparisons that can't be true
parents 22536916 947a6adf
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1443,7 +1443,7 @@ void EventHub::setLedForController(Device* device) {
}

bool EventHub::hasKeycodeLocked(Device* device, int keycode) const {
    if (!device->keyMap.haveKeyLayout() || !device->keyBitmask) {
    if (!device->keyMap.haveKeyLayout()) {
        return false;
    }
    
@@ -1461,7 +1461,7 @@ bool EventHub::hasKeycodeLocked(Device* device, int keycode) const {
}

status_t EventHub::mapLed(Device* device, int32_t led, int32_t* outScanCode) const {
    if (!device->keyMap.haveKeyLayout() || !device->ledBitmask) {
    if (!device->keyMap.haveKeyLayout()) {
        return NAME_NOT_FOUND;
    }