* [PATCH] iio: adf4350: fix compiler warning [-Wuninitialized]
@ 2012-06-05 9:52 michael.hennerich
0 siblings, 0 replies; only message in thread
From: michael.hennerich @ 2012-06-05 9:52 UTC (permalink / raw)
To: gregkh; +Cc: jic23, linux-iio, device-drivers-devel, Michael Hennerich
From: Michael Hennerich <michael.hennerich@analog.com>
drivers/iio/frequency/adf4350.c:316:32: warning: =E2=80=98val=E2=80=99 ma=
y be used uninitialized in this function
[-Wuninitialized]
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Reported-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
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/adf4=
350.c
index fd4c850..2d09f82 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 =3D !!(st->regs[ADF4350_REG2] & ADF4350_REG2_POWER_DOWN_EN);
break;
+ default:
+ ret =3D -ENODEV;
}
mutex_unlock(&indio_dev->mlock);
=20
--=20
1.7.0.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2012-06-05 9:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-05 9:52 [PATCH] iio: adf4350: fix compiler warning [-Wuninitialized] michael.hennerich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).