Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

authored by

Hans Wennborg and committed by
Mauro Carvalho Chehab
612f676b a3752184

+2
+2
drivers/media/dvb-frontends/mb86a16.c
··· 118 118 dprintk(verbose, MB86A16_ERROR, 1, "read error(reg=0x%02x, ret=%i)", 119 119 reg, ret); 120 120 121 + if (ret < 0) 122 + return ret; 121 123 return -EREMOTEIO; 122 124 } 123 125 *val = b1[0];