diff options
author | Matthias Schwarzott <zzam@gentoo.org> | 2010-11-07 10:57:13 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-12-29 08:16:46 -0200 |
commit | 13d28e4917fb6cf6898e8998f01ab83b3f468aeb (patch) | |
tree | 9cf0fd5b70ea6e77af0b041c6fdceb1f112ec9ec /drivers | |
parent | 62c7cdd8a16025e4d5596b8e61352960745f3707 (diff) | |
download | linux-13d28e4917fb6cf6898e8998f01ab83b3f468aeb.tar.gz linux-13d28e4917fb6cf6898e8998f01ab83b3f468aeb.tar.bz2 linux-13d28e4917fb6cf6898e8998f01ab83b3f468aeb.zip |
[media] IX2505V: i2c transfer error code ignored
It seems that ix2505v driver ignores a i2c error in ix2505v_read_status_reg.
This looks like a typing error using (ret = 1) instead of correct (ret == 1).
Acked-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Matthias Schwarzott <zzam@gentoo.org>
Cc: stable@kernel.org
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/dvb/frontends/ix2505v.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/dvb/frontends/ix2505v.c b/drivers/media/dvb/frontends/ix2505v.c index 55f2eba7bc96..6360c681ded9 100644 --- a/drivers/media/dvb/frontends/ix2505v.c +++ b/drivers/media/dvb/frontends/ix2505v.c @@ -72,7 +72,7 @@ static int ix2505v_read_status_reg(struct ix2505v_state *state) ret = i2c_transfer(state->i2c, msg, 1); deb_i2c("Read %s ", __func__); - return (ret = 1) ? (int) b2[0] : -1; + return (ret == 1) ? (int) b2[0] : -1; } static int ix2505v_write(struct ix2505v_state *state, u8 buf[], u8 count) |