WSL2-Linux-Kernel/drivers/iio/pressure
Geert Uytterhoeven f61dfff2f5 iio: pressure: zpa2326: Remove always-true check which confuses gcc
With gcc 4.1.2:

    drivers/iio/pressure/zpa2326.c: In function ‘zpa2326_wait_oneshot_completion’:
    drivers/iio/pressure/zpa2326.c:868: warning: ‘ret’ may be used uninitialized in this function

When testing for "timeout < 0", timeout is already guaranteed to be
strict negative, so the branch is always taken, and ret is thus always
initialized.  But (some version of) gcc is not smart enough to notice.

Remove the check to fix this.
As there is no other code in between assigning the error codes and
returning them, the error codes can be returned immediately, and the
intermediate variable can be dropped.
Drop the "else" to please checkpatch.

Fixes: e7215fe4d5 ("iio: pressure: zpa2326: report interrupted case as failure")
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2017-09-25 21:39:00 +01:00
..
Kconfig iio: pressure: Fix name of BME280 part in Kconfig 2017-04-23 12:38:47 +01:00
Makefile iio: cros_ec: Add cros_ec barometer driver 2017-01-28 15:07:46 +00:00
abp060mg.c iio: pressure: Add driver for Honeywell ABP family 2016-10-01 15:14:37 +01:00
bmp280-core.c First round of IIO fixes for the 4.14 cycle 2017-09-25 10:58:22 +02:00
bmp280-i2c.c iio: pressure: bmp280: add power management 2016-07-03 11:32:14 +01:00
bmp280-regmap.c iio: pressure: bmp280: split off an I2C Kconfig entry 2016-07-03 11:27:14 +01:00
bmp280-spi.c iio: pressure: bmp280: add power management 2016-07-03 11:32:14 +01:00
bmp280.h iio: bmp280: properly initialize device for humidity reading 2017-07-30 14:41:12 +01:00
cros_ec_baro.c iio: cros_ec: Add cros_ec barometer driver 2017-01-28 15:07:46 +00:00
hid-sensor-press.c Second set of new driver, functionality and cleanups for IIO in the 4.2 cycle. 2015-05-24 11:45:21 -07:00
hp03.c iio: pressure: hp03: Add OF device ID table 2017-03-19 10:53:39 +00:00
hp206c.c iio: Export I2C module alias information 2016-05-21 20:08:14 +01:00
mpl115.c iio: pressure: mpl115: do not rely on structure field ordering 2017-02-11 09:00:44 +00:00
mpl115.h iio: pressure: mpl115: support MPL115A1 2016-01-30 16:27:12 +00:00
mpl115_i2c.c iio: convert to common i2c_check_functionality() return value 2016-02-27 17:17:43 +00:00
mpl115_spi.c iio: pressure: mpl115: support MPL115A1 2016-01-30 16:27:12 +00:00
mpl3115.c iio: pressure: mpl3115: Add OF device ID table 2017-03-19 10:58:01 +00:00
ms5611.h iio:pressure:ms5611: fix missing regulator_disable 2016-03-20 11:02:40 +00:00
ms5611_core.c iio: pressure: ms5611: claim direct mode during oversampling changes 2017-01-21 12:31:05 +00:00
ms5611_i2c.c iio:pressure:ms5611: oversampling rate support 2016-03-05 14:45:14 +00:00
ms5611_spi.c iio: pressure: ms5611: use tab for indention 2016-04-16 13:39:28 +01:00
ms5637.c iio: pressure: ms5637: Add OF match table 2017-07-01 10:16:59 +01:00
st_pressure.h iio: st_pressure: Support i2c probe using acpi 2016-12-03 08:56:27 +00:00
st_pressure_buffer.c iio: st_sensors: switch to a threaded interrupt 2016-05-29 20:21:41 +01:00
st_pressure_core.c Second set of IIO new device support, features and cleanup for the 4.14 cycle. 2017-08-20 10:42:42 -07:00
st_pressure_i2c.c iio: common: st_sensors: move st_sensors_of_i2c_probe() in common code 2017-07-01 10:16:56 +01:00
st_pressure_spi.c iio: pressure: st_pressure_spi: add OF capability to st_pressure_spi 2017-07-02 10:24:58 +01:00
t5403.c iio: convert to common i2c_check_functionality() return value 2016-02-27 17:17:43 +00:00
zpa2326.c iio: pressure: zpa2326: Remove always-true check which confuses gcc 2017-09-25 21:39:00 +01:00
zpa2326.h iio:pressure: initial zpa2326 barometer support 2016-09-18 19:42:21 +01:00
zpa2326_i2c.c iio:pressure: initial zpa2326 barometer support 2016-09-18 19:42:21 +01:00
zpa2326_spi.c iio:pressure: initial zpa2326 barometer support 2016-09-18 19:42:21 +01:00