aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2010-02-02 17:40:50 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-02-26 13:10:51 -0500
commit690c79ae7a0d928459ee6a09be781a2503c27e3e (patch)
treee76db197a5487147e1214ca98002219a50c3df99
parentc2312f60d741df833abf48fee4a30aa523e55a58 (diff)
V4L/DVB: drivers/media/dvb/frontends/stv090x.c: fix use-uninitialised
drivers/media/dvb/frontends/stv090x.c: In function 'stv090x_blind_search': drivers/media/dvb/frontends/stv090x.c:1967: warning: 'coarse_fail' may be used uninitialized in this function Cc: Manu Abraham <manu@linuxtv.org> Cc: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Reviewed-by: Manu Abraham <manu@linuxtv.org> Acked-by: Manu Abraham <manu@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/dvb/frontends/stv090x.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/dvb/frontends/stv090x.c b/drivers/media/dvb/frontends/stv090x.c
index e1d4647b1a99..a11a2eb27f55 100644
--- a/drivers/media/dvb/frontends/stv090x.c
+++ b/drivers/media/dvb/frontends/stv090x.c
@@ -1964,7 +1964,8 @@ static int stv090x_blind_search(struct stv090x_state *state)
1964 u32 agc2, reg, srate_coarse; 1964 u32 agc2, reg, srate_coarse;
1965 s32 cpt_fail, agc2_ovflw, i; 1965 s32 cpt_fail, agc2_ovflw, i;
1966 u8 k_ref, k_max, k_min; 1966 u8 k_ref, k_max, k_min;
1967 int coarse_fail, lock; 1967 int coarse_fail = 0;
1968 int lock;
1968 1969
1969 k_max = 110; 1970 k_max = 110;
1970 k_min = 10; 1971 k_min = 10;