Skip to content

Commit

Permalink
spi: mpc5xxx-psc: Remove goto to the unexisted label
Browse files Browse the repository at this point in the history
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 <lkp@intel.com>
Fixes: 9e21720 ("spi: mpc5xxx-psc: use devm_clk_get_enabled() for core clock")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20230310111544.57342-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
andy-shev authored and broonie committed Mar 10, 2023
1 parent a96c358 commit 21d19e6
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions drivers/spi/spi-mpc512x-psc.c
Original file line number Diff line number Diff line change
Expand Up @@ -511,13 +511,9 @@ static int mpc512x_psc_spi_of_probe(struct platform_device *pdev)

ret = mpc512x_psc_spi_port_config(master, mps);
if (ret < 0)
goto free_ipg_clock;

ret = devm_spi_register_master(dev, master);
if (ret < 0)
goto free_ipg_clock;
return ret;

return ret;
return devm_spi_register_master(dev, master);
}

static const struct of_device_id mpc512x_psc_spi_of_match[] = {
Expand Down

0 comments on commit 21d19e6

Please sign in to comment.