iio: inkern: fix a static checker error
authorPeter Rosin <peda@axentia.se>
Thu, 20 Apr 2017 21:01:57 +0000 (23:01 +0200)
committerJonathan Cameron <jic23@kernel.org>
Wed, 26 Apr 2017 05:04:06 +0000 (06:04 +0100)
commitc773f70015f6f07f4abe93b486da7f53fde6e878
treed13f2f882b73cc7af43938511dbc58c2bac234ab
parent9a043b0bf286e189ab49410c66170c86d59563c5
iio: inkern: fix a static checker error

Avoid this smatch error:
drivers/iio/inkern.c:751 iio_read_avail_channel_raw() error: double unlock 'mutex:&chan->indio_dev->info_exist_lock'

Fixes: 00c5f80c2fad ("iio: inkern: add helpers to query available values from channels")
Signed-off-by: Peter Rosin <peda@axentia.se>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/inkern.c