Skip to contentSkip to conversation

dvb: Initialize a variable before used.

PATCH New Il Han 1 participant 1 message May 7, 2012 Media (V4L/DVB)

lore
Share & tools
lore

Il Han

author
#0 lore raw

PATCH 1/1 dvb: Initialize a variable before used.

The variable ret is used uninitialized.
It should be initialized before used.
Initialize it.

---
 drivers/media/dvb/dvb-usb/lmedm04.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/media/dvb/dvb-usb/lmedm04.c +1 -1
index 5dde06d..dc57258 100644
@@ -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");
 
Signature · 1 line
1.7.4.1