iio:bmi160: use if (ret) instead of if (ret < 0)
authorMartin Kelly <martin@martingkelly.com>
Sat, 2 Feb 2019 21:56:01 +0000 (13:56 -0800)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 9 Feb 2019 15:25:25 +0000 (15:25 +0000)
commit94edaac707e2882513b8b8b83482e4cba77863e7
treee6103820cb7a2e99247893329b4821af46577613
parent0a3f50e4d698e3d46ce10171dcd076c927bb60a8
iio:bmi160: use if (ret) instead of if (ret < 0)

We are using "if (ret < 0)" in many places in which the function returns 0
on success. Use "if (ret)" instead for better clarity and correctness.

Signed-off-by: Martin Kelly <martin@martingkelly.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/imu/bmi160/bmi160_core.c