Skip to content

Commit

Permalink
V4L/DVB (13522): valj5jf8007s/t: fix compile warnings
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Dec 5, 2009
1 parent 516e24d commit 289a774
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/media/dvb/pt1/va1j5jf8007s.c
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ va1j5jf8007s_tune(struct dvb_frontend *fe,
{
struct va1j5jf8007s_state *state;
int ret;
int lock;
int lock = 0;

state = fe->demodulator_priv;

Expand Down
2 changes: 1 addition & 1 deletion drivers/media/dvb/pt1/va1j5jf8007t.c
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ va1j5jf8007t_tune(struct dvb_frontend *fe,
{
struct va1j5jf8007t_state *state;
int ret;
int lock, retry;
int lock = 0, retry = 0;

state = fe->demodulator_priv;

Expand Down

0 comments on commit 289a774

Please sign in to comment.