drivers/media/dvb/frontends/stv090x.c: fix use-uninitialised
PATCH 6/7 drivers/media/dvb/frontends/stv090x.c: fix use-uninitialised
From: Andrew Morton <[email protected]>
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 <[email protected]>
Cc Mauro Carvalho Chehab <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
drivers/media/dvb/frontends/stv090x.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/media/dvb/frontends/stv090x.c renamed from drivers/media/dvb/frontends/stv090x.c~drivers-media-dvb-frontends-stv090xc-fix-use-uninitialised +2 -1
@@ -1964,7 +1964,8 @@ static int stv090x_blind_search(struct su32 agc2, reg, srate_coarse;s32 cpt_fail, agc2_ovflw, i;u8 k_ref, k_max, k_min; -int coarse_fail, lock; +int coarse_fail =0 ; +int lock; k_max =110 ; k_min =10 ;
_
Quoted 26 lines · On Wed, Feb 3, 2010 at 2:40 AM, <[email protected]> wrote:
From: Andrew Morton <[email protected]>
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 functionCc Manu Abraham <[email protected]>Cc Mauro Carvalho Chehab <[email protected]>Signed-off-by Andrew Morton <[email protected]>---
drivers/media/dvb/frontends/stv090x.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)diff -puN
drivers/media/dvb/frontends/stv090x.c~drivers-media-dvb-frontends-stv090xc-fix-use-uninitialiseddrivers/media/dvb/frontends/stv090x.cdrivers/media/dvb/frontends/stv090x.c renamed from drivers/media/dvb/frontends/stv090x.c~drivers-media-dvb-frontends-stv090xc-fix-use-uninitialised +2
-1@@ -1964,7 +1964,8 @@ static int stv090x_blind_search(struct s u32 agc2, reg, srate_coarse; s32 cpt_fail, agc2_ovflw, i; u8 k_ref, k_max, k_min; - int coarse_fail, lock; + int coarse_fail = 0; + int lock; k_max = 110; k_min = 10;
Quoted 2 lines
_
Looks good
Reviewed-by Manu Abraham <[email protected]>
Acked-by Manu Abraham <[email protected]>
Thanks,
Manu