[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220509072405.1118019-1-lv.ruyi@zte.com.cn>
Date: Mon, 9 May 2022 07:24:05 +0000
From: cgel.zte@...il.com
To: jic23@...nel.org, lars@...afoo.de
Cc: anand.ashok.dumbre@...inx.com, michal.simek@...inx.com,
manish.narani@...inx.com, linux-iio@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
Lv Ruyi <lv.ruyi@....com.cn>, Zeal Robot <zealci@....com.cn>
Subject: [PATCH] iio: adc: fix return error variable
From: Lv Ruyi <lv.ruyi@....com.cn>
Return irq instead of ret which always equals to zero here.
Fixes: d5c70627a794 ("iio: adc: Add Xilinx AMS driver")
Reported-by: Zeal Robot <zealci@....com.cn>
Signed-off-by: Lv Ruyi <lv.ruyi@....com.cn>
---
drivers/iio/adc/xilinx-ams.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/iio/adc/xilinx-ams.c b/drivers/iio/adc/xilinx-ams.c
index a55396c1f8b2..a7687706012d 100644
--- a/drivers/iio/adc/xilinx-ams.c
+++ b/drivers/iio/adc/xilinx-ams.c
@@ -1409,7 +1409,7 @@ static int ams_probe(struct platform_device *pdev)
irq = platform_get_irq(pdev, 0);
if (irq < 0)
- return ret;
+ return irq;
ret = devm_request_irq(&pdev->dev, irq, &ams_irq, 0, "ams-irq",
indio_dev);
--
2.25.1
Powered by blists - more mailing lists