From: d binderman Date: Mon, 9 Jan 2006 20:21:32 +0000 (-0200) Subject: V4L/DVB (3318): Fixes warning: variable "ret" is used before its value is set X-Git-Tag: v2.6.16-rc1~663^2~12 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=f2a333148c12f9e8f0be9df052398147614f5cb8;p=linux-2.6-omap-h63xx.git V4L/DVB (3318): Fixes warning: variable "ret" is used before its value is set - Fixes compiling warning on kernel 2.6.15 with the Intel C compiler. - It said drivers/media/dvb/frontends/bcm3510.c(258): warning #592: variable "ret" is used before its value is set Signed-off-by: Patrick Boettcher Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/dvb/frontends/bcm3510.c b/drivers/media/dvb/frontends/bcm3510.c index e9b363625c5..3b132bafd4d 100644 --- a/drivers/media/dvb/frontends/bcm3510.c +++ b/drivers/media/dvb/frontends/bcm3510.c @@ -255,7 +255,7 @@ static int bcm3510_bert_reset(struct bcm3510_state *st) bcm3510_register_value b; int ret; - if ((ret < bcm3510_readB(st,0xfa,&b)) < 0) + if ((ret = bcm3510_readB(st,0xfa,&b)) < 0) return ret; b.BERCTL_fa.RESYNC = 0; bcm3510_writeB(st,0xfa,b);