mirror of
https://github.com/torvalds/linux.git
synced 2026-07-28 01:55:51 +02:00
spi: cadence: 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/20260421123615.1533617-5-johan@kernel.org Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
63f34e35f8
commit
bf7b648acd
|
|
@ -635,7 +635,7 @@ static int cdns_target_abort(struct spi_controller *ctlr)
|
|||
*/
|
||||
static int cdns_spi_probe(struct platform_device *pdev)
|
||||
{
|
||||
int ret = 0, irq;
|
||||
int ret, irq;
|
||||
struct spi_controller *ctlr;
|
||||
struct cdns_spi *xspi;
|
||||
u32 num_cs;
|
||||
|
|
@ -754,7 +754,7 @@ static int cdns_spi_probe(struct platform_device *pdev)
|
|||
if (!spi_controller_is_target(ctlr))
|
||||
pm_runtime_put_autosuspend(&pdev->dev);
|
||||
|
||||
return ret;
|
||||
return 0;
|
||||
|
||||
err_disable_rpm:
|
||||
if (!spi_controller_is_target(ctlr)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user