From: Alexandru Gheorghiu Date: Thu, 14 Mar 2013 09:07:31 +0000 (+0200) Subject: spi/fsl: Use PTR_RET function X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e4d43781df4b7da0cb86987b25dfa425407a643c;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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: Alexandru Gheorghiu Signed-off-by: Mark Brown --- diff --git a/drivers/spi/spi-fsl-spi.c b/drivers/spi/spi-fsl-spi.c index 086a9eef2e05..1985ba38032e 100644 --- a/drivers/spi/spi-fsl-spi.c +++ b/drivers/spi/spi-fsl-spi.c @@ -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)