Revert "Staging: iio: adt7316: Add an extra check for 'ret' equals to 0"
authorJeremy Fertic <jeremyfertic@gmail.com>
Wed, 5 Dec 2018 01:49:00 +0000 (18:49 -0700)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 8 Dec 2018 11:15:54 +0000 (11:15 +0000)
commit5c608d4dd49a4ffbedc85f8a89820173df12b111
tree71ab277b1863dd833dbc97c6bda4354c17ad6d19
parentc3e566c8cb553026cf530f01c80b665a2a0926f9
Revert "Staging: iio: adt7316: Add an extra check for 'ret' equals to 0"

This reverts commit 00426e99789357dbff7e719a092ce36a3ce49d94.

i2c_smbus_read_byte() returns 0 when a byte with the value 0 is read from
the device. This is a valid read so revert the check for 0.

Signed-off-by: Jeremy Fertic <jeremyfertic@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/staging/iio/addac/adt7316-i2c.c