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

Commit 66281c3a authored by Zhijun He's avatar Zhijun He
Browse files

Camera: Don't overwrite the error status

Bug: 10749544
Change-Id: I6096effde03e18ee1b8c63cf3b36dce0344054c5
parent d176ec1e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -95,7 +95,7 @@ status_t Camera2ClientBase<TClientBase>::initialize(camera_module_t *module) {
    if (res != OK) {
        ALOGE("%s: Camera %d: unable to initialize device: %s (%d)",
                __FUNCTION__, TClientBase::mCameraId, strerror(-res), res);
        return NO_INIT;
        return res;
    }

    res = mDevice->setNotifyCallback(this);