iio: adc: axp20x_adc: remove !! in favor of ternary condition
authorQuentin Schulz <quentin.schulz@bootlin.com>
Mon, 19 Feb 2018 12:47:36 +0000 (13:47 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 24 Feb 2018 12:19:45 +0000 (12:19 +0000)
commitadc18ba9061eade402b8d84c6bbcb5ca87add8da
tree5f75bee8dd3f15f7a3d2dab2436fb2e780436bce
parent4c73b809a99fc4df39fb18664288921b052f9649
iio: adc: axp20x_adc: remove !! in favor of ternary condition

!!'s behaviour isn't that obvious and sparse complained about it, so
let's replace it with a ternary condition.

Signed-off-by: Quentin Schulz <quentin.schulz@bootlin.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/axp20x_adc.c