diff options
author | Jeremy Fertic <jeremyfertic@gmail.com> | 2018-12-04 18:49:00 -0700 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2018-12-08 11:15:54 +0000 |
commit | 5c608d4dd49a4ffbedc85f8a89820173df12b111 (patch) | |
tree | 71ab277b1863dd833dbc97c6bda4354c17ad6d19 /drivers/iio | |
parent | c3e566c8cb553026cf530f01c80b665a2a0926f9 (diff) | |
download | lwn-5c608d4dd49a4ffbedc85f8a89820173df12b111.tar.gz lwn-5c608d4dd49a4ffbedc85f8a89820173df12b111.zip |
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>
Diffstat (limited to 'drivers/iio')
0 files changed, 0 insertions, 0 deletions