]> git.baikalelectronics.ru Git - kernel.git/commit
Staging: iio/light: Fix return values in tsl2583.c
authorMonam Agarwal <monamagarwal123@gmail.com>
Sun, 9 Mar 2014 05:28:40 +0000 (10:58 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Mar 2014 16:58:07 +0000 (09:58 -0700)
commit07d1ee451202d3d66aa614108c0cc0232144d690
tree06383c4be9c649b7c9bda98bc59803e06a203005
parentdd6c3b318df38def81bc8e6ab24fb9bfd2a5022f
Staging: iio/light: Fix return values in tsl2583.c

This patch fixes following smatch warnings:
/drivers/staging/iio/light/tsl2583.c:436 taos_chip_on() info: why not propagate 'ret' from i2c_smbus_write_byte_data() instead of (-1)?
/drivers/staging/iio/light/tsl2583.c:448 taos_chip_on() info: why not propagate 'ret' from i2c_smbus_write_byte_data() instead of (-1)?
/drivers/staging/iio/light/tsl2583.c:461 taos_chip_on() info: why not propagate 'ret' from i2c_smbus_write_byte_data() instead of (-1)?

Signed-off-by: Monam Agarwal <monamagarwal123@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/iio/light/tsl2583.c