Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

iio: dac: ad5592r: Delete stray unlock in ad5592r_write_raw()

This code was converted to use guard locks but one of the unlocks was
accidentally overlooked. Delete it.

Fixes: 135e101f4dd6 ("iio: dac: ad5592r: use lock guards")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Reviewed-by: Nuno Sá <nuno.sa@analog.com>
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Link: https://patch.msgid.link/Z_-P7bsD3KL5K25R@stanley.mountain
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Dan Carpenter and committed by
Jonathan Cameron
1851c0f2 3012a122

+1 -3
+1 -3
drivers/iio/dac/ad5592r-base.c
··· 324 324 325 325 ret = st->ops->reg_read(st, AD5592R_REG_CTRL, 326 326 &st->cached_gp_ctrl); 327 - if (ret < 0) { 328 - mutex_unlock(&st->lock); 327 + if (ret < 0) 329 328 return ret; 330 - } 331 329 332 330 if (chan->output) { 333 331 if (gain)