[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <1407390124-29346-1-git-send-email-hans@hanshq.net>
Date: Wed, 6 Aug 2014 22:42:04 -0700
From: Hans Wennborg <hans@...shq.net>
To: m.chehab@...sung.com, linux-media@...r.kernel.org,
linux-kernel@...r.kernel.org
Cc: Hans Wennborg <hans@...shq.net>
Subject: [PATCH 2/2] [media] dvb: return the error from i2c_transfer if negative
Signed-off-by: Hans Wennborg <hans@...shq.net>
---
drivers/media/dvb-frontends/mb86a16.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/media/dvb-frontends/mb86a16.c b/drivers/media/dvb-frontends/mb86a16.c
index 1f7fce7..0e65d35 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];
--
2.0.0.526.g5318336
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists