diff options
author | Jesper Juhl <jj@chaosbits.net> | 2012-10-12 19:16:37 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-10-28 16:41:54 -0200 |
commit | 7c72e19dcf7f9a49eedab328ebf7c0a45d76716d (patch) | |
tree | c908d016baeb7b71035acc92ca73a3be3861412d /drivers/media/usb/stk1160 | |
parent | 56411c0f1eec7495bcf1fd6b83a51bb57be608d4 (diff) | |
download | kernel_goldelico_gta04-7c72e19dcf7f9a49eedab328ebf7c0a45d76716d.zip kernel_goldelico_gta04-7c72e19dcf7f9a49eedab328ebf7c0a45d76716d.tar.gz kernel_goldelico_gta04-7c72e19dcf7f9a49eedab328ebf7c0a45d76716d.tar.bz2 |
[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: Jesper Juhl <jj@chaosbits.net>
Acked-by: Ezequiel Garcia <elezegarcia@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/usb/stk1160')
-rw-r--r-- | drivers/media/usb/stk1160/stk1160-i2c.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/usb/stk1160/stk1160-i2c.c b/drivers/media/usb/stk1160/stk1160-i2c.c index 176ac93..850cf28 100644 --- a/drivers/media/usb/stk1160/stk1160-i2c.c +++ b/drivers/media/usb/stk1160/stk1160-i2c.c @@ -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; |