From: Lee Jones Date: Thu, 28 Aug 2014 13:14:00 +0000 (+0100) Subject: iio: sensors-core: st: Check st_sensors_set_drdy_int_pin()'s return value X-Git-Tag: fixes-for-v3.18-merge-window~15^2~437^2~26 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c8bf223469b4db4d63e1dd8bdbde5ffb32d0cba;p=pandora-kernel.git iio: sensors-core: st: Check st_sensors_set_drdy_int_pin()'s return value 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 Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed