diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2014-06-20 20:22:00 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-07-09 11:18:27 -0700 |
commit | d76487939ce88c9b19cb1c8dada9c550590cac14 (patch) | |
tree | 3a0a11f7c05680650f5c1b6f58c5820ff2a1dca4 /fs/ext2 | |
parent | e7bf5a8bbc2fa525e83f1acdd74c5914ed142f47 (diff) |
staging: iio/ad7291: fix error code in ad7291_probe()
commit b70e19c222a64018d308ebc80333575aff9f4e51 upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/ext2')
0 files changed, 0 insertions, 0 deletions