diff options
author | Il Han <corone.il.han@gmail.com> | 2012-05-07 15:04:42 (GMT) |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-05-15 11:19:12 (GMT) |
commit | b7dc4cd17506284a47eeb9160207e43c7d5486fe (patch) | |
tree | b8091d1e008fdd61dbf968f2346ba1f366ea6513 /drivers/media | |
parent | 9ab494b010e1b4c4693afa297ffbcf0f09bb9063 (diff) | |
download | linux-b7dc4cd17506284a47eeb9160207e43c7d5486fe.tar.xz |
[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')
-rw-r--r-- | drivers/media/dvb/dvb-usb/lmedm04.c | 2 |
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 003fb9b..25d1031 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"); |