]> Pileus Git - ~andy/linux/commitdiff
V4L/DVB (3318): Fixes warning: variable "ret" is used before its value is set
authord binderman <dcb314@hotmail.com>
Mon, 9 Jan 2006 20:21:32 +0000 (18:21 -0200)
committerMauro Carvalho Chehab <mchehab@brturbo.com.br>
Mon, 9 Jan 2006 20:21:32 +0000 (18:21 -0200)
- 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 <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
drivers/media/dvb/frontends/bcm3510.c

index e9b363625c5020c4421ed2f21c093d6f386edf66..3b132bafd4de0f0f39bcf87ab83b5b05ae444c88 100644 (file)
@@ -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);