Commit 7c72e19d authored by Jesper Juhl's avatar Jesper Juhl Committed by Mauro Carvalho Chehab

[media] stk1160: Check return value of stk1160_read_reg() in stk1160_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: default avatarJesper Juhl <jj@chaosbits.net>
Acked-by: default avatarEzequiel Garcia <elezegarcia@gmail.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 56411c0f
...@@ -116,7 +116,7 @@ static int stk1160_i2c_read_reg(struct stk1160 *dev, u8 addr, ...@@ -116,7 +116,7 @@ static int stk1160_i2c_read_reg(struct stk1160 *dev, u8 addr,
if (rc < 0) if (rc < 0)
return rc; return rc;
stk1160_read_reg(dev, STK1160_SBUSR_RD, value); rc = stk1160_read_reg(dev, STK1160_SBUSR_RD, value);
if (rc < 0) if (rc < 0)
return rc; return rc;
......
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