diff options
author | Krzysztof Kosiński <krzysio@google.com> | 2023-09-01 00:15:02 +0000 |
---|---|---|
committer | Krzysztof Kosiński <krzysio@google.com> | 2023-09-01 00:16:52 +0000 |
commit | 0ea79e00cdffbc205e5af441695c268d6083b52c (patch) | |
tree | 370471f8969c13459a0d211dd252f417f4d5e0a6 | |
parent | 14c8df37e3755ab0ba0739d670dbced3aa0fe4a6 (diff) | |
download | camera-0ea79e00cdffbc205e5af441695c268d6083b52c.tar.gz |
Fix typo that causes thermal service to always be null.
This could be detected with -Wshadow, but turning that on
currently causes other breakage.
Bug: 298299323
Test: presubmit, check logs
Change-Id: I4515f14ec0218debdb3aba6c642885c42d8ba3ed
-rw-r--r-- | common/hal/aidl_service/aidl_camera_device_session.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/hal/aidl_service/aidl_camera_device_session.cc b/common/hal/aidl_service/aidl_camera_device_session.cc index 64acd2f..ed4978e 100644 --- a/common/hal/aidl_service/aidl_camera_device_session.cc +++ b/common/hal/aidl_service/aidl_camera_device_session.cc @@ -399,7 +399,7 @@ status_t AidlCameraDeviceSession::Initialize( std::string(aidl::android::hardware::thermal::IThermal::descriptor) + "/default"; if (AServiceManager_isDeclared(thermal_instance_name.c_str())) { - auto thermal_ = + thermal_ = aidl::android::hardware::thermal::IThermal::fromBinder(ndk::SpAIBinder( AServiceManager_waitForService(thermal_instance_name.c_str()))); if (!thermal_) { |