Skip to content

Commit

Permalink
[media] lmedm04: Initialize a variable before its usage
Browse files Browse the repository at this point in the history
The variable ret is used uninitialized.
It should be initialized before used.
Initialize it.

Signed-off-by: Il Han <corone.il.han@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Il Han authored and Mauro Carvalho Chehab committed May 15, 2012
1 parent 9ab494b commit b7dc4cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/dvb/dvb-usb/lmedm04.c
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ static int lme2510_pid_filter_ctrl(struct dvb_usb_adapter *adap, int onoff)
struct lme2510_state *st = adap->dev->priv;
static u8 clear_pid_reg[] = LME_ALL_PIDS;
static u8 rbuf[1];
int ret;
int ret = 0;

deb_info(1, "PID Clearing Filter");

Expand Down

0 comments on commit b7dc4cd

Please sign in to comment.