[7/7] drivers/media/dvb/frontends/stv090x.c: fix use-uninitlalised
Commit Message
From: Andrew Morton <akpm@linux-foundation.org>
Mad guess.
Cc: Manu Abraham <manu@linuxtv.org>
Cc: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
drivers/media/dvb/frontends/stv090x.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
Hi Andrew,
On Wed, Feb 3, 2010 at 2:40 AM, <akpm@linux-foundation.org> wrote:
> From: Andrew Morton <akpm@linux-foundation.org>
>
> Mad guess.
>
> Cc: Manu Abraham <manu@linuxtv.org>
> Cc: Mauro Carvalho Chehab <mchehab@redhat.com>
> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
> ---
>
> drivers/media/dvb/frontends/stv090x.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff -puN drivers/media/dvb/frontends/stv090x.c~drivers-media-dvb-frontends-stv090xc-fix-use-uninitlalised drivers/media/dvb/frontends/stv090x.c
> --- a/drivers/media/dvb/frontends/stv090x.c~drivers-media-dvb-frontends-stv090xc-fix-use-uninitlalised
> +++ a/drivers/media/dvb/frontends/stv090x.c
> @@ -2047,7 +2047,7 @@ static int stv090x_chk_tmg(struct stv090
> 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);
> _
>
Looks good
Reviewed-by: Manu Abraham <manu@linuxtv.org>
Acked-by: Manu Abraham <manu@linuxtv.org>
Thanks,
Manu
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
@@ -2047,7 +2047,7 @@ static int stv090x_chk_tmg(struct stv090
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);