diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2009-11-25 16:42:42 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-12-05 15:42:15 -0500 |
commit | 289a774bf53b366393e51b4f512b610bfb5fdd9d (patch) | |
tree | 2cf827ef0664a3335c4210d53f132e3793f38308 /drivers/media/dvb | |
parent | 516e24d78feb4dded16df0053bd0e7c7f68fafa2 (diff) |
V4L/DVB (13522): valj5jf8007s/t: fix compile warnings
Trivial fix for these bogus compile warnings:
v4l/va1j5jf8007s.c: In function 'va1j5jf8007s_tune':
v4l/va1j5jf8007s.c:394: warning: 'lock' may be used uninitialized in this function
v4l/va1j5jf8007t.c: In function 'va1j5jf8007t_tune':
v4l/va1j5jf8007t.c:273: warning: 'lock' may be used uninitialized in this function
v4l/va1j5jf8007t.c:273: warning: 'retry' may be used uninitialized in this function
These variables are never used uninitialized, but the compiler couldn't
figure that out unfortunately.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb')
-rw-r--r-- | drivers/media/dvb/pt1/va1j5jf8007s.c | 2 | ||||
-rw-r--r-- | drivers/media/dvb/pt1/va1j5jf8007t.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/dvb/pt1/va1j5jf8007s.c b/drivers/media/dvb/pt1/va1j5jf8007s.c index a20927e10d70..fc6594996e79 100644 --- a/drivers/media/dvb/pt1/va1j5jf8007s.c +++ b/drivers/media/dvb/pt1/va1j5jf8007s.c | |||
@@ -391,7 +391,7 @@ va1j5jf8007s_tune(struct dvb_frontend *fe, | |||
391 | { | 391 | { |
392 | struct va1j5jf8007s_state *state; | 392 | struct va1j5jf8007s_state *state; |
393 | int ret; | 393 | int ret; |
394 | int lock; | 394 | int lock = 0; |
395 | 395 | ||
396 | state = fe->demodulator_priv; | 396 | state = fe->demodulator_priv; |
397 | 397 | ||
diff --git a/drivers/media/dvb/pt1/va1j5jf8007t.c b/drivers/media/dvb/pt1/va1j5jf8007t.c index fe897343f4f8..3db4f3e34e8f 100644 --- a/drivers/media/dvb/pt1/va1j5jf8007t.c +++ b/drivers/media/dvb/pt1/va1j5jf8007t.c | |||
@@ -270,7 +270,7 @@ va1j5jf8007t_tune(struct dvb_frontend *fe, | |||
270 | { | 270 | { |
271 | struct va1j5jf8007t_state *state; | 271 | struct va1j5jf8007t_state *state; |
272 | int ret; | 272 | int ret; |
273 | int lock, retry; | 273 | int lock = 0, retry = 0; |
274 | 274 | ||
275 | state = fe->demodulator_priv; | 275 | state = fe->demodulator_priv; |
276 | 276 | ||