Patch "iio: adc: xilinx-ams: fix return error variable" has been added to the 5.18-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    iio: adc: xilinx-ams: fix return error variable

to the 5.18-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     iio-adc-xilinx-ams-fix-return-error-variable.patch
and it can be found in the queue-5.18 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit b80c70c7391cef5d713b4bc05cbef49b8ceaf83c
Author: Lv Ruyi <lv.ruyi@xxxxxxxxxx>
Date:   Mon May 9 07:24:05 2022 +0000

    iio: adc: xilinx-ams: fix return error variable
    
    [ Upstream commit f8ef475aa069cd72e9e7bdb2d60dc6a89e2bafad ]
    
    Return irq instead of ret which always equals to zero here.
    
    Fixes: d5c70627a794 ("iio: adc: Add Xilinx AMS driver")
    Reported-by: Zeal Robot <zealci@xxxxxxxxxx>
    Signed-off-by: Lv Ruyi <lv.ruyi@xxxxxxxxxx>
    Reviewed-by: Michal Simek <michal.simek@xxxxxxx>
    Signed-off-by: Jonathan Cameron <Jonathan.Cameron@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

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);



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux