From 3860060ba08111224b70380adecefa0c3bc9b7a5 Mon Sep 17 00:00:00 2001 From: Johannes Stezenbach Date: Tue, 24 May 2005 10:07:55 +0000 Subject: fix: drivers/media/dvb/frontends/bcm3510.c: In function `bcm3510_read_signal_strength': drivers/media/dvb/frontends/bcm3510.c:322: warning: ISO C90 forbids mixed declarations and code Signed-off-by: Johannes Stezenbach --- linux/drivers/media/dvb/frontends/bcm3510.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'linux/drivers/media/dvb/frontends/bcm3510.c') diff --git a/linux/drivers/media/dvb/frontends/bcm3510.c b/linux/drivers/media/dvb/frontends/bcm3510.c index 41b40d532..f5fdc5c3e 100644 --- a/linux/drivers/media/dvb/frontends/bcm3510.c +++ b/linux/drivers/media/dvb/frontends/bcm3510.c @@ -318,8 +318,10 @@ static int bcm3510_read_unc(struct dvb_frontend* fe, u32* unc) static int bcm3510_read_signal_strength(struct dvb_frontend* fe, u16* strength) { struct bcm3510_state* st = fe->demodulator_priv; + s32 t; + bcm3510_refresh_state(st); - s32 t = st->status2.SIGNAL; + t = st->status2.SIGNAL; if (t > 190) t = 190; -- cgit v1.2.3