Skip to content

Commit

Permalink
[PATCH] dvb: Remove status check from nxt200x_readreg_multibyte
Browse files Browse the repository at this point in the history
Remove status check from nxt200x_readreg_multibyte, it really shouldn't be
necessary.

Signed-off-by: Kirk Lapray <[email protected]>
Signed-off-by: Michael Krufky <[email protected]>
Cc: Johannes Stezenbach <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
klapray authored and Linus Torvalds committed Nov 9, 2005
1 parent b3967d6 commit f93cf03
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions drivers/media/dvb/frontends/nxt200x.c
Original file line number Diff line number Diff line change
Expand Up @@ -239,26 +239,16 @@ static int nxt200x_readreg_multibyte (struct nxt200x_state* state, u8 reg, u8* d
buf = 0x80;
nxt200x_writebytes(state, 0x21, &buf, 1);

/* read status */
nxt200x_readbytes(state, 0x21, &buf, 1);

if (buf == 0)
{
/* read the actual data */
for(i = 0; i < len; i++) {
nxt200x_readbytes(state, 0x36 + i, &data[i], 1);
}
return 0;
/* read the actual data */
for(i = 0; i < len; i++) {
nxt200x_readbytes(state, 0x36 + i, &data[i], 1);
}
return 0;
break;
default:
return -EINVAL;
break;
}

printk(KERN_WARNING "nxt200x: Error reading multireg register 0x%02X\n",reg);

return 0;
}

static void nxt200x_microcontroller_stop (struct nxt200x_state* state)
Expand Down

0 comments on commit f93cf03

Please sign in to comment.