* [PATCH] cx23885: fix uninitialized variable warning
@ 2014-11-03 9:20 Hans Verkuil
0 siblings, 0 replies; only message in thread
From: Hans Verkuil @ 2014-11-03 9:20 UTC (permalink / raw)
To: Linux Media Mailing List
cx23885-dvb.c: In function 'cx23885_sp2_ci_ctrl':
cx23885-dvb.c:675:13: warning: 'tmp' may be used uninitialized in this function [-Wmaybe-uninitialized]
*mem = tmp & 0xff;
^
diff --git a/drivers/media/pci/cx23885/cx23885-dvb.c b/drivers/media/pci/cx23885/cx23885-dvb.c
index 7578549..577d2e9 100644
--- a/drivers/media/pci/cx23885/cx23885-dvb.c
+++ b/drivers/media/pci/cx23885/cx23885-dvb.c
@@ -635,7 +635,7 @@ static int cx23885_sp2_ci_ctrl(void *priv, u8 read, int addr,
struct cx23885_tsport *port = priv;
struct cx23885_dev *dev = port->dev;
int ret;
- int tmp;
+ int tmp = 0;
unsigned long timeout;
mutex_lock(&dev->gpio_lock);
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-11-03 9:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-03 9:20 [PATCH] cx23885: fix uninitialized variable warning Hans Verkuil
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).