Dan Carpenter b70e19c222 staging: iio/ad7291: fix error code in ad7291_probe()
We should be returning a negative error code instead of success here.

This would have been detected by GCC, except that the "ret" variable was
initialized with a bogus value to disable GCC's uninitialized variable
warnings.  I've cleaned that up, as well.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Cc: Stable@vger.kernel.org
2014-06-21 11:35:30 +01:00
..
2014-04-23 21:44:41 +01:00
2014-04-14 08:29:28 -07:00