staging: iio: meter: replace ternary operator by if condition
authorDeepak R Varma <drv@mailo.com>
Sun, 13 Nov 2022 05:28:20 +0000 (10:58 +0530)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Wed, 23 Nov 2022 19:58:45 +0000 (19:58 +0000)
commit572cc583c92e7b113a0d0f650b02d80505920eef
tree93a5b9922339cb925d767e4f2354f8f8b5c18958
parent5ae34494cf37ae6383f4bd674f343ef20833024d
staging: iio: meter: replace ternary operator by if condition

Replace ternary operator by simple if based evaluation of the return
value. Issue identified using coccicheck.

Signed-off-by: Deepak R Varma <drv@mailo.com>
Link: https://lore.kernel.org/r/Y3CAdCa17WdWDYUa@qemulion
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/staging/iio/meter/ade7854-i2c.c