Skip to content

Commit

Permalink
[media] stk1160: Check return value of stk1160_read_reg() in stk1160_…
Browse files Browse the repository at this point in the history
…i2c_read_reg()

Remember to collect the exit status from 'stk1160_read_reg()' in 'rc'
before testing it for less than zero.

Signed-off-by: Jesper Juhl <[email protected]>
Acked-by: Ezequiel Garcia <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
  • Loading branch information
jjuhl authored and Mauro Carvalho Chehab committed Oct 28, 2012
1 parent 56411c0 commit 7c72e19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/usb/stk1160/stk1160-i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ static int stk1160_i2c_read_reg(struct stk1160 *dev, u8 addr,
if (rc < 0)
return rc;

stk1160_read_reg(dev, STK1160_SBUSR_RD, value);
rc = stk1160_read_reg(dev, STK1160_SBUSR_RD, value);
if (rc < 0)
return rc;

Expand Down

0 comments on commit 7c72e19

Please sign in to comment.