iio: sensors-core: st: Check st_sensors_set_drdy_int_pin()'s return value
authorLee Jones <lee.jones@linaro.org>
Thu, 28 Aug 2014 13:14:00 +0000 (14:14 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sat, 30 Aug 2014 09:49:22 +0000 (10:49 +0100)
Value from st_sensors_set_drdy_int_pin() is assigned to err here,
but that stored value is not used before it is overwritten.  To fix
this we're enforcing a check on st_sensors_set_drdy_int_pin()'s
return value and if it's an error, we're returning right away.

Cc: jic23@kernel.org
Cc: linux-iio@vger.kernel.org
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>

No differences found