Commit f93cf038 authored by Kirk Lapray's avatar Kirk Lapray Committed by Linus Torvalds

[PATCH] dvb: Remove status check from nxt200x_readreg_multibyte

Remove status check from nxt200x_readreg_multibyte, it really shouldn't be
necessary.
Signed-off-by: default avatarKirk Lapray <kirk.lapray@gmail.com>
Signed-off-by: default avatarMichael Krufky <mkrufky@m1k.net>
Cc: Johannes Stezenbach <js@linuxtv.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent b3967d6c
...@@ -239,26 +239,16 @@ static int nxt200x_readreg_multibyte (struct nxt200x_state* state, u8 reg, u8* d ...@@ -239,26 +239,16 @@ static int nxt200x_readreg_multibyte (struct nxt200x_state* state, u8 reg, u8* d
buf = 0x80; buf = 0x80;
nxt200x_writebytes(state, 0x21, &buf, 1); nxt200x_writebytes(state, 0x21, &buf, 1);
/* read status */
nxt200x_readbytes(state, 0x21, &buf, 1);
if (buf == 0)
{
/* read the actual data */ /* read the actual data */
for(i = 0; i < len; i++) { for(i = 0; i < len; i++) {
nxt200x_readbytes(state, 0x36 + i, &data[i], 1); nxt200x_readbytes(state, 0x36 + i, &data[i], 1);
} }
return 0; return 0;
}
break; break;
default: default:
return -EINVAL; return -EINVAL;
break; break;
} }
printk(KERN_WARNING "nxt200x: Error reading multireg register 0x%02X\n",reg);
return 0;
} }
static void nxt200x_microcontroller_stop (struct nxt200x_state* state) static void nxt200x_microcontroller_stop (struct nxt200x_state* state)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment