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

Commit ef4bbdec authored by Zhao Qiang's avatar Zhao Qiang Committed by Mark Brown
Browse files

spi/fsl: deal with a compile warning



ret is unused when CONFIG_FSL_SOC defined,
so return ret instead of -ENOMEM when the
kzalloc fails to avoid it.

Signed-off-by: default avatarZhao Qiang <B45475@freescale.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 7171511e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -196,7 +196,7 @@ int of_mpc8xxx_spi_probe(struct platform_device *ofdev)

	pinfo = devm_kzalloc(&ofdev->dev, sizeof(*pinfo), GFP_KERNEL);
	if (!pinfo)
		return -ENOMEM;
		return ret;

	pdata = &pinfo->pdata;
	dev->platform_data = pdata;