diff options
author | Michael Hennerich <michael.hennerich@analog.com> | 2012-06-05 11:52:18 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-06-07 14:26:28 +0900 |
commit | a21e6bfeb40eddf365d3e7841b37f3708fa6b13f (patch) | |
tree | 5c4cacc7a07bedb65b1e55c394a93645cac37d67 /drivers/iio | |
parent | 42b38207c36890ead05ab1c0002714c48b9b996a (diff) | |
download | blackbird-op-linux-a21e6bfeb40eddf365d3e7841b37f3708fa6b13f.tar.gz blackbird-op-linux-a21e6bfeb40eddf365d3e7841b37f3708fa6b13f.zip |
iio: adf4350: fix compiler warning [-Wuninitialized]
drivers/iio/frequency/adf4350.c:316:32: warning: ‘val’ may be used uninitialized in this function
[-Wuninitialized]
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Reported-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/iio')
-rw-r--r-- | drivers/iio/frequency/adf4350.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/iio/frequency/adf4350.c b/drivers/iio/frequency/adf4350.c index fd4c8501aba9..2d09f82d9752 100644 --- a/drivers/iio/frequency/adf4350.c +++ b/drivers/iio/frequency/adf4350.c @@ -310,6 +310,8 @@ static ssize_t adf4350_read(struct iio_dev *indio_dev, case ADF4350_PWRDOWN: val = !!(st->regs[ADF4350_REG2] & ADF4350_REG2_POWER_DOWN_EN); break; + default: + ret = -ENODEV; } mutex_unlock(&indio_dev->mlock); |