Skip to content

Commit

Permalink
[media] IX2505V: i2c transfer error code ignored
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Matthias Schwarzott authored and Mauro Carvalho Chehab committed Dec 29, 2010
1 parent 62c7cdd commit 13d28e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/dvb/frontends/ix2505v.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 13d28e4

Please sign in to comment.