diff options
author | Hans Wennborg <hans@hanshq.net> | 2014-08-07 02:42:04 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2014-09-22 17:05:13 -0300 |
commit | 612f676bbef9b937764db453c931ea48be8020ef (patch) | |
tree | e89b57ddb30dc272dd730927016f6b9e67c75511 /drivers/media/dvb-frontends | |
parent | a375218460a625f15b5403d15d9a67d8f8951177 (diff) | |
download | blackbird-op-linux-612f676bbef9b937764db453c931ea48be8020ef.tar.gz blackbird-op-linux-612f676bbef9b937764db453c931ea48be8020ef.zip |
[media] dvb: return the error from i2c_transfer if negative
Just returns whatever error that was returned by the i2c core,
in the case of errors, only returning -EREMOTEIO if the transfer size
is not what it was expected.
Signed-off-by: Hans Wennborg <hans@hanshq.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/dvb-frontends')
-rw-r--r-- | drivers/media/dvb-frontends/mb86a16.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/dvb-frontends/mb86a16.c b/drivers/media/dvb-frontends/mb86a16.c index bc9a0adda3cb..3ddea4471d2b 100644 --- a/drivers/media/dvb-frontends/mb86a16.c +++ b/drivers/media/dvb-frontends/mb86a16.c @@ -118,6 +118,8 @@ static int mb86a16_read(struct mb86a16_state *state, u8 reg, u8 *val) dprintk(verbose, MB86A16_ERROR, 1, "read error(reg=0x%02x, ret=%i)", reg, ret); + if (ret < 0) + return ret; return -EREMOTEIO; } *val = b1[0]; |