From: Il Han Date: Mon, 7 May 2012 15:04:42 +0000 (-0300) Subject: [media] lmedm04: Initialize a variable before its usage X-Git-Tag: firefly_0821_release~3680^2~275^2~2203 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b7dc4cd17506284a47eeb9160207e43c7d5486fe;p=firefly-linux-kernel-4.4.55.git [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 Signed-off-by: Mauro Carvalho Chehab --- 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");