sdm660-common: gps: Fix misleading indentation

* That makes clang17 happy
* Fix:
  device/xiaomi/violet/gps/android/utils/battery_listener.cpp:191:13: error: misleading indentation; statement is not part of the previous 'if' [-Werror,-Wmisleading-indentation]
            auto r = mHealth->unlinkToDeath(this);
            ^
device/xiaomi/violet/gps/android/utils/battery_listener.cpp:189:9: note: previous statement is here
        if (mHealth != NULL)
        ^
1 warning and 1 error generated.

Change-Id: I3be1e3de45ce184c9d3dbcede57a312375a91498
Signed-off-by: Nanhumly <admin@warbler.cc>
Signed-off-by: pix106 <sbordenave@gmail.com>
This commit is contained in:
AmeChanRain 2023-10-05 15:33:34 +00:00 committed by pix106
parent 425e2083a3
commit d4034097ab

View file

@ -184,7 +184,7 @@ BatteryListenerImpl::~BatteryListenerImpl()
{ {
{ {
std::lock_guard<std::mutex> _l(mLock); std::lock_guard<std::mutex> _l(mLock);
if (mHealth != NULL) if (mHealth != NULL) {
mHealth->unregisterCallback(this); mHealth->unregisterCallback(this);
auto r = mHealth->unlinkToDeath(this); auto r = mHealth->unlinkToDeath(this);
if (!r.isOk() || r == false) { if (!r.isOk() || r == false) {
@ -192,6 +192,7 @@ BatteryListenerImpl::~BatteryListenerImpl()
r.description().c_str()); r.description().c_str());
} }
} }
}
mDone = true; mDone = true;
mThread->join(); mThread->join();
} }