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

Commit f2f79cfc authored by Eric Laurent's avatar Eric Laurent
Browse files

RadioService: fix error handling in attach().

Fix typo causing tuner open error to be ignored.

Change-Id: I10735f0cf6ae64ff9c4efa2eb4b20d94d3597ae5
parent 1ac91ed2
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -146,7 +146,7 @@ status_t RadioService::attach(radio_handle_t handle,
    radio = module->addClient(client, config, withAudio);

    if (radio == 0) {
        NO_INIT;
        return NO_INIT;
    }
    return NO_ERROR;
}
@@ -500,13 +500,12 @@ sp<RadioService::ModuleClient> RadioService::Module::addClient(const sp<IRadioCl
        if (audio) {
            notifyDeviceConnection(true, "");
        }
        ALOGV("addClient() DONE moduleClient %p", moduleClient.get());
    } else {
        ALOGW("%s open_tuner failed with error %d", __FUNCTION__, ret);
        moduleClient.clear();
    }


    ALOGV("addClient() DONE moduleClient %p", moduleClient.get());

    return moduleClient;
}