[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20221129143145.2067-1-thunder.leizhen@huawei.com>
Date: Tue, 29 Nov 2022 22:31:45 +0800
From: Zhen Lei <thunder.leizhen@...wei.com>
To: Andy Gross <agross@...nel.org>,
Bjorn Andersson <andersson@...nel.org>,
Konrad Dybcio <konrad.dybcio@...ainline.org>,
<linux-arm-msm@...r.kernel.org>, <linux-i2c@...r.kernel.org>,
<linux-kernel@...r.kernel.org>
CC: Zhen Lei <thunder.leizhen@...wei.com>,
Wolfram Sang <wsa@...nel.org>, Vinod Koul <vkoul@...nel.org>
Subject: [PATCH] i2c: qcom-geni: Fix error return code in geni_i2c_gpi_xfer()
Function geni_i2c_gpi_xfer() returns 'ret' to the upper function instead
of gi2c->err.
Fixes: d8703554f4de ("i2c: qcom-geni: Add support for GPI DMA")
Signed-off-by: Zhen Lei <thunder.leizhen@...wei.com>
---
drivers/i2c/busses/i2c-qcom-geni.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/i2c/busses/i2c-qcom-geni.c b/drivers/i2c/busses/i2c-qcom-geni.c
index 84a77512614d9fb..8fce98bb77ff974 100644
--- a/drivers/i2c/busses/i2c-qcom-geni.c
+++ b/drivers/i2c/busses/i2c-qcom-geni.c
@@ -626,7 +626,6 @@ static int geni_i2c_gpi_xfer(struct geni_i2c_dev *gi2c, struct i2c_msg msgs[], i
dev_err(gi2c->se.dev, "I2C timeout gpi flags:%d addr:0x%x\n",
gi2c->cur->flags, gi2c->cur->addr);
gi2c->err = -ETIMEDOUT;
- goto err;
}
if (gi2c->err) {
--
2.25.1
Powered by blists - more mailing lists