mirror of
https://github.com/torvalds/linux.git
synced 2026-05-12 16:18:45 +02:00
spi: orion: clean up probe return value
Drop the redundant initialisation and return explicit zero on successful probe to make the code more readable. Signed-off-by: Johan Hovold <johan@kernel.org> Link: https://patch.msgid.link/20260421130211.1537628-4-johan@kernel.org Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
443cde0dc5
commit
fa5061daff
|
|
@ -648,8 +648,8 @@ static int orion_spi_probe(struct platform_device *pdev)
|
|||
struct orion_spi *spi;
|
||||
struct resource *r;
|
||||
unsigned long tclk_hz;
|
||||
int status = 0;
|
||||
struct device_node *np;
|
||||
int status;
|
||||
|
||||
host = spi_alloc_host(&pdev->dev, sizeof(*spi));
|
||||
if (host == NULL) {
|
||||
|
|
@ -787,7 +787,7 @@ static int orion_spi_probe(struct platform_device *pdev)
|
|||
|
||||
pm_runtime_put_autosuspend(&pdev->dev);
|
||||
|
||||
return status;
|
||||
return 0;
|
||||
|
||||
out_rel_pm:
|
||||
pm_runtime_disable(&pdev->dev);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user