mirror of
https://github.com/torvalds/linux.git
synced 2026-07-28 01:55:51 +02:00
spi: omap2-mcspi: clean up probe return value
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>
This commit is contained in:
parent
186fda6ee1
commit
46bd1fafc4
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user