iio:adc: ad7766: testing the wrong variable in probe
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 10 Nov 2016 19:30:18 +0000 (22:30 +0300)
committerJonathan Cameron <jic23@kernel.org>
Sat, 12 Nov 2016 14:35:21 +0000 (14:35 +0000)
commit0d8391f3d60f0b544951b4014f433b4c068da293
tree1904f769eb1df44685ec596fcc34eb4e1f64ef49
parentb548674ea78417a470a12416eebe016f93e460c0
iio:adc: ad7766: testing the wrong variable in probe

We should be testing "ret" here.

Fixes: aa16c6bd0e09 ("iio:adc: Add support for AD7766/AD7767")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/adc/ad7766.c