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

Commit 3fa46d8b authored by Eric Laurent's avatar Eric Laurent Committed by Android (Google) Code Review
Browse files

Merge "RadioService: fix error handling in attach()."

parents 138f7742 f2f79cfc
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;
}