From: Andrew Morton Date: Tue, 2 Feb 2010 22:40:51 +0000 (-0300) Subject: V4L/DVB: drivers/media/dvb/frontends/stv090x.c: fix use-uninitlalised X-Git-Tag: v2.6.34-rc1~280^2~146 X-Git-Url: http://bbs.cooldavid.org/git/?a=commitdiff_plain;h=08c45cd58560f10e08e0ec4686845625b7030e8c;p=net-next-2.6.git V4L/DVB: drivers/media/dvb/frontends/stv090x.c: fix use-uninitlalised Mad guess. Signed-off-by: Andrew Morton Reviewed-by: Manu Abraham Acked-by: Manu Abraham Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/dvb/frontends/stv090x.c b/drivers/media/dvb/frontends/stv090x.c index a11a2eb27f5..c52c3357dc5 100644 --- a/drivers/media/dvb/frontends/stv090x.c +++ b/drivers/media/dvb/frontends/stv090x.c @@ -2047,7 +2047,7 @@ static int stv090x_chk_tmg(struct stv090x_state *state) u32 reg; s32 tmg_cpt = 0, i; u8 freq, tmg_thh, tmg_thl; - int tmg_lock; + int tmg_lock = 0; freq = STV090x_READ_DEMOD(state, CARFREQ); tmg_thh = STV090x_READ_DEMOD(state, TMGTHRISE);