Skip to content

Commit

Permalink
V4L/DVB (3318): Fixes warning: variable "ret" is used before its valu…
Browse files Browse the repository at this point in the history
…e 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 torvalds#592: variable "ret" is used before its value is set

Signed-off-by: Patrick Boettcher <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
  • Loading branch information
dcb314 authored and Mauro Carvalho Chehab committed Jan 9, 2006
1 parent 7560d7a commit f2a3331
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/dvb/frontends/bcm3510.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f2a3331

Please sign in to comment.