From: Dan Carpenter Date: Fri, 20 Jun 2014 19:22:00 +0000 (+0100) Subject: staging: iio/ad7291: fix error code in ad7291_probe() X-Git-Tag: omap-for-v3.16/fixes-rc4~21^2^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b70e19c222a64018d308ebc80333575aff9f4e51;p=pandora-kernel.git 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 Signed-off-by: Jonathan Cameron Cc: Stable@vger.kernel.org --- Reading git-diff-tree failed