linux/drivers/iio
Dan Carpenter 82a5803c78 staging: iio: ad799x: remove some unneeded IS_ERR() checks
My static checker is upset that we check IS_ERR(t->reg) when we know it
is not an ERR_PTR.

Checking for IS_ERR() twice is often a sign of confusion and buggy code.
In this case, if the call to "ret = regulator_enable(st->vref);" fails,
then we call "regulator_disable(st->vref);" and that's a mistake because
"st->vref" is not enabled.

I fixed these problems and Hartmut Knaack pointed out a couple unneeded
IS_ERR() checks in ad799x_remove() so I have removed those as well.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Hartmut Knaack <knaack.h@gmx.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2014-05-03 11:14:01 +01:00
..
accel iio: st_sensors: move regulator retrieveal to core 2014-04-26 11:52:42 +01:00
adc staging: iio: ad799x: remove some unneeded IS_ERR() checks 2014-05-03 11:14:01 +01:00
amplifiers
common First round of IIO new driver, functionality and cleanups for the 3.16 cycle. 2014-04-26 08:12:25 -07:00
dac iio: dac: ad7303: remove an unneeded check 2014-02-03 21:44:42 +00:00
frequency Merge 3.12-rc6 into staging-next. 2013-10-19 13:14:34 -07:00
gyro iio: st_sensors: move regulator retrieveal to core 2014-04-26 11:52:42 +01:00
humidity iio: Add si7005 relative humidity and temperature sensor driver 2014-01-11 11:12:44 +00:00
imu iio: imu: inv_mpu6050: Add compatibity with MPU6500 2014-03-29 10:45:09 +00:00
light First found of IIO fixes for the 3.15 cycle. 2014-04-22 21:29:20 -07:00
magnetometer iio: st_sensors: move regulator retrieveal to core 2014-04-26 11:52:42 +01:00
orientation iio: hid-sensors: Added device rotation support 2014-04-29 22:11:53 +01:00
pressure iio: st_sensors: move regulator retrieveal to core 2014-04-26 11:52:42 +01:00
proximity iio: Add AS3935 lightning sensor support 2014-03-16 18:00:32 +00:00
temperature
trigger
buffer_cb.c iio get rid of unneccessary error_ret 2014-02-18 08:46:36 +00:00
iio_core_trigger.h
iio_core.h IIO: core: Introduce read_raw_multi 2014-04-29 22:05:32 +01:00
industrialio-buffer.c IIO: core: Modify scan element type 2014-04-29 22:07:11 +01:00
industrialio-core.c IIO: core: Add quaternion modifier 2014-04-29 22:09:14 +01:00
industrialio-event.c IIO: core: Introduce read_raw_multi 2014-04-29 22:05:32 +01:00
industrialio-trigger.c iio get rid of unneccessary error_ret 2014-02-18 08:46:36 +00:00
industrialio-triggered-buffer.c iio:triggered-buffer: Remove redundant call to iio_sw_buffer_preenable(). 2013-10-16 19:12:47 +01:00
inkern.c IIO: core: Introduce read_raw_multi 2014-04-29 22:05:32 +01:00
Kconfig iio: Add AS3935 lightning sensor support 2014-03-16 18:00:32 +00:00
kfifo_buf.c iio: kfifo_buf: Implement data_available() callback 2013-12-03 20:22:28 +00:00
Makefile iio: Add AS3935 lightning sensor support 2014-03-16 18:00:32 +00:00