All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] iio: staging: ad7298_ring: Fix maybe-uninitialized warning
@ 2012-07-16  8:42 michael.hennerich
  2012-07-16  9:26 ` Peter Meerwald
  0 siblings, 1 reply; 5+ messages in thread
From: michael.hennerich @ 2012-07-16  8:42 UTC (permalink / raw)
  To: jic23; +Cc: linux-iio, device-drivers-devel, fengguang.wu, Michael Hennerich

From: Michael Hennerich <michael.hennerich@analog.com>

drivers/staging/iio/adc/ad7298_ring.c:97:37: warning: 'time_ns' may
be used uninitialized in this function [-Wmaybe-uninitialized]

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
---
 drivers/staging/iio/adc/ad7298_ring.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/staging/iio/adc/ad7298_ring.c b/drivers/staging/iio/adc/ad7298_ring.c
index fd1d855..506016f 100644
--- a/drivers/staging/iio/adc/ad7298_ring.c
+++ b/drivers/staging/iio/adc/ad7298_ring.c
@@ -76,7 +76,7 @@ static irqreturn_t ad7298_trigger_handler(int irq, void *p)
 	struct iio_dev *indio_dev = pf->indio_dev;
 	struct ad7298_state *st = iio_priv(indio_dev);
 	struct iio_buffer *ring = indio_dev->buffer;
-	s64 time_ns;
+	s64 time_ns = 0;
 	__u16 buf[16];
 	int b_sent, i;
 
-- 
1.7.0.4

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-07-16 11:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-16  8:42 [PATCH] iio: staging: ad7298_ring: Fix maybe-uninitialized warning michael.hennerich
2012-07-16  9:26 ` Peter Meerwald
2012-07-16  9:49   ` Michael Hennerich
2012-07-16 10:02     ` Peter Meerwald
2012-07-16 11:27       ` Jonathan Cameron

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.