Skip to content

Commit 21d19e6

Browse files
andy-shevbroonie
authored andcommitted
spi: mpc5xxx-psc: Remove goto to the unexisted label
The previous cleanup patch had lost one of its parts in a crack, Finish the cleanup by removing the leftovers. Reported-by: kernel test robot <[email protected]> Fixes: 9e21720 ("spi: mpc5xxx-psc: use devm_clk_get_enabled() for core clock") Signed-off-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent a96c358 commit 21d19e6

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

drivers/spi/spi-mpc512x-psc.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -511,13 +511,9 @@ static int mpc512x_psc_spi_of_probe(struct platform_device *pdev)
511511

512512
ret = mpc512x_psc_spi_port_config(master, mps);
513513
if (ret < 0)
514-
goto free_ipg_clock;
515-
516-
ret = devm_spi_register_master(dev, master);
517-
if (ret < 0)
518-
goto free_ipg_clock;
514+
return ret;
519515

520-
return ret;
516+
return devm_spi_register_master(dev, master);
521517
}
522518

523519
static const struct of_device_id mpc512x_psc_spi_of_match[] = {

0 commit comments

Comments
 (0)