OSDN Git Service

thermal: qpnp-adc-tm: release lock upon disable_chan_meas failure
authorDavid Lin <dtwlin@google.com>
Sun, 30 Apr 2017 23:43:24 +0000 (16:43 -0700)
committerArian <arian.kulmer@web.de>
Tue, 19 Nov 2019 14:36:08 +0000 (15:36 +0100)
commit8d5442bddf954ea803547437828c591854eddf73
tree1916447ba710a573b0bdef20f3e2fa724c8c2ed9
parent9efa55c68c6f4d7a19e39c93b3f71bfbf81fa89d
thermal: qpnp-adc-tm: release lock upon disable_chan_meas failure

This fixes the smath warning below:

drivers/thermal/qpnp-adc-tm.c:2943 qpnp_adc_tm_disable_chan_meas() warn:
inconsistent returns 'mutex:&chip->adc->adc_lock'.

Bug: 35898203
Change-Id: I149ed4868cd4754246b3b8845a0af7f1f08c0931
Signed-off-by: David Lin <dtwlin@google.com>
drivers/thermal/qpnp-adc-tm.c