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 <gheorghiuandru@gmail.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
parent
6ada5115af
commit
e4d43781df
1 changed files with 1 additions and 3 deletions
|
@ -1134,9 +1134,7 @@ static int plat_mpc8xxx_spi_probe(struct platform_device *pdev)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
master = fsl_spi_probe(&pdev->dev, mem, irq);
|
master = fsl_spi_probe(&pdev->dev, mem, irq);
|
||||||
if (IS_ERR(master))
|
return PTR_RET(master);
|
||||||
return PTR_ERR(master);
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int plat_mpc8xxx_spi_remove(struct platform_device *pdev)
|
static int plat_mpc8xxx_spi_remove(struct platform_device *pdev)
|
||||||
|
|
Loading…
Add table
Reference in a new issue