]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
spi: spi-qpic-snand: avoid double assignment in qcom_spi_probe()
authorGabor Juhos <j4g8y7@gmail.com>
Fri, 8 Aug 2025 13:15:32 +0000 (15:15 +0200)
committerMark Brown <broonie@kernel.org>
Sun, 10 Aug 2025 20:11:43 +0000 (21:11 +0100)
The snandc->dev pointer is being assigned twice in the qcom_spi_probe()
function. Remove the second assignment as that uses the same pointer
value than the first one.

No functional changes.

Signed-off-by: Gabor Juhos <j4g8y7@gmail.com>
Link: https://patch.msgid.link/20250808-qpic-snand-double-assign-fix-v2-1-1a3d0ed0d404@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-qpic-snand.c

index 0ceaad7dba3cb5ae68eb428f27d4ebbb2a26cdf2..5c72d8ed74bb4e412d3fd99a3ff50d53645ca4c4 100644 (file)
@@ -1549,7 +1549,6 @@ static int qcom_spi_probe(struct platform_device *pdev)
        }
 
        snandc->props = dev_data;
-       snandc->dev = &pdev->dev;
 
        snandc->core_clk = devm_clk_get(dev, "core");
        if (IS_ERR(snandc->core_clk))