Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e4d43781 authored by Alexandru Gheorghiu's avatar Alexandru Gheorghiu Committed by Mark Brown
Browse files

spi/fsl: Use PTR_RET function



Replaced calls to IS_ERR and PTR_ERR with PTR_RET function.
Patch found using coccinelle.

Signed-off-by: default avatarAlexandru Gheorghiu <gheorghiuandru@gmail.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 6ada5115
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -1134,9 +1134,7 @@ static int plat_mpc8xxx_spi_probe(struct platform_device *pdev)
		return -EINVAL;

	master = fsl_spi_probe(&pdev->dev, mem, irq);
	if (IS_ERR(master))
		return PTR_ERR(master);
	return 0;
	return PTR_RET(master);
}

static int plat_mpc8xxx_spi_remove(struct platform_device *pdev)