summaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb
diff options
context:
space:
mode:
authorIl Han <corone.il.han@gmail.com>2012-05-07 17:04:42 +0200
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-05-15 13:19:12 +0200
commitb7dc4cd17506284a47eeb9160207e43c7d5486fe (patch)
treeb8091d1e008fdd61dbf968f2346ba1f366ea6513 /drivers/media/dvb
parent[media] it913x.: Fix a misuse of || (diff)
downloadlinux-b7dc4cd17506284a47eeb9160207e43c7d5486fe.tar.xz
linux-b7dc4cd17506284a47eeb9160207e43c7d5486fe.zip
[media] lmedm04: Initialize a variable before its usage
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>
Diffstat (limited to 'drivers/media/dvb')
-rw-r--r--drivers/media/dvb/dvb-usb/lmedm04.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/dvb/dvb-usb/lmedm04.c b/drivers/media/dvb/dvb-usb/lmedm04.c
index 003fb9bb7117..25d1031460f8 100644
--- a/drivers/media/dvb/dvb-usb/lmedm04.c
+++ b/drivers/media/dvb/dvb-usb/lmedm04.c
@@ -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");