projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ab494b
)
[media] lmedm04: Initialize a variable before its usage
author
Il Han
<corone.il.han@gmail.com>
Mon, 7 May 2012 15:04:42 +0000
(12:04 -0300)
committer
Mauro Carvalho Chehab
<mchehab@redhat.com>
Tue, 15 May 2012 11:19:12 +0000
(08:19 -0300)
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>
drivers/media/dvb/dvb-usb/lmedm04.c
patch
|
blob
|
history
diff --git
a/drivers/media/dvb/dvb-usb/lmedm04.c
b/drivers/media/dvb/dvb-usb/lmedm04.c
index 003fb9bb71173caaab0f45946f96a68ceed9a603..25d1031460f8071deaa2bd0e9a5e14879824fb37 100644
(file)
--- 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");