]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
spi: omap2-mcspi: clean up probe return value
authorJohan Hovold <johan@kernel.org>
Thu, 30 Apr 2026 12:02:00 +0000 (14:02 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 4 May 2026 13:12:00 +0000 (22:12 +0900)
Return explicit zero on successful probe to clearly separate the success
and error paths and make the code more readable.

Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://patch.msgid.link/20260430120200.249323-4-johan@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-omap2-mcspi.c

index 59ebdf7edbd2d1255b423720a4bbb9628dfd0a81..d53f98aa0aacb8263f6d07115e4f5645de0f21ba 100644 (file)
@@ -1594,7 +1594,7 @@ static int omap2_mcspi_probe(struct platform_device *pdev)
        if (status < 0)
                goto err_disable_rpm;
 
-       return status;
+       return 0;
 
 err_disable_rpm:
        pm_runtime_dont_use_autosuspend(&pdev->dev);