linux/drivers/iio/magnetometer
Colin Ian King e2eb179c00 iio: magnetometer: ak8974: remove redundant zero timeout check
At the end of the delay loop timeout will always be zero
and hence the check for !timeout will always be true. Remove
the redundant check and the redundant return 0 at the end of
the function.

Fixes CoverityScan CID#1357168 ("Logically dead code")

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2017-01-14 13:10:04 +00:00
..
ak8974.c iio: magnetometer: ak8974: remove redundant zero timeout check 2017-01-14 13:10:04 +00:00
ak8975.c drivers: iio: magnetometer: Fix sparse endianness warnings cast to restricted __be16 2016-09-27 21:08:45 +01:00
bmc150_magn_i2c.c iio: magn: Add support for BMM150 magnetometer 2016-05-21 17:37:21 +01:00
bmc150_magn_spi.c iio: magn: Add support for BMM150 magnetometer 2016-05-21 17:37:21 +01:00
bmc150_magn.c iio: magn: Split bmc150 driver in common/i2c parts 2016-04-18 20:44:40 +01:00
bmc150_magn.h iio: magn: Split bmc150 driver in common/i2c parts 2016-04-18 20:44:40 +01:00
hid-sensor-magn-3d.c iio: magnetometer: separate the values of attributes based on their usage type for HID compass sensor 2016-11-24 20:41:30 +00:00
hmc5843_core.c iio:core: timestamping clock selection support 2016-06-30 19:41:38 +01:00
hmc5843_i2c.c iio: hmc5843: Move hmc5843 out of staging 2016-02-24 20:40:39 +00:00
hmc5843_spi.c iio: hmc5843: Move hmc5843 out of staging 2016-02-24 20:40:39 +00:00
hmc5843.h iio: hmc5843: Move hmc5843 out of staging 2016-02-24 20:40:39 +00:00
Kconfig iio: magn: add a driver for AK8974 2016-08-15 16:49:39 +01:00
mag3110.c iio: magnetometer: mag3110: claim direct mode during raw reads 2016-08-21 19:37:35 +01:00
Makefile iio: magn: add a driver for AK8974 2016-08-15 16:49:39 +01:00
mmc35240.c Second set of new device support, features and cleanup for the 4.3 cycle. 2015-08-12 12:43:41 -07:00
st_magn_buffer.c iio: st_sensors: switch to a threaded interrupt 2016-05-29 20:21:41 +01:00
st_magn_core.c iio: magn: st_magn: inline per-sensor data 2016-11-12 15:45:37 +00:00
st_magn_i2c.c iio: st-magn: add support for lsm303agr magnetometer 2015-07-23 20:43:27 +01:00
st_magn_spi.c spi: Drop owner assignment from spi_drivers 2015-10-28 10:30:17 +09:00
st_magn.h iio: st_magn: always define ST_MAGN_TRIGGER_SET_STATE 2016-04-03 10:56:42 +01:00