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

Commit 9a2c1d31 authored by Wei Yongjun's avatar Wei Yongjun Committed by Michael Ellerman
Browse files

powerpc/4xx: Fix error return code in ppc4xx_msi_probe()



Fix to return a negative error code from the error handling
case instead of 0, as done elsewhere in this function.

Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
[mpe: Add missing ';' to make it compile]
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent f2086386
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -241,7 +241,8 @@ static int ppc4xx_msi_probe(struct platform_device *dev)
	if (!msi_irqs)
		return -ENODEV;

	if (ppc4xx_setup_pcieh_hw(dev, res, msi))
	err = ppc4xx_setup_pcieh_hw(dev, res, msi);
	if (err)
		goto error_out;

	err = ppc4xx_msi_init_allocator(dev, msi);