提交 f2a33314 编写于 作者: D d binderman 提交者: Mauro Carvalho Chehab

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: NPatrick Boettcher <pb@linuxtv.org>
Signed-off-by: NMauro Carvalho Chehab <mchehab@brturbo.com.br>
上级 7560d7a4
...@@ -255,7 +255,7 @@ static int bcm3510_bert_reset(struct bcm3510_state *st) ...@@ -255,7 +255,7 @@ static int bcm3510_bert_reset(struct bcm3510_state *st)
bcm3510_register_value b; bcm3510_register_value b;
int ret; int ret;
if ((ret < bcm3510_readB(st,0xfa,&b)) < 0) if ((ret = bcm3510_readB(st,0xfa,&b)) < 0)
return ret; return ret;
b.BERCTL_fa.RESYNC = 0; bcm3510_writeB(st,0xfa,b); b.BERCTL_fa.RESYNC = 0; bcm3510_writeB(st,0xfa,b);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册