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

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
...@@ -241,7 +241,8 @@ static int ppc4xx_msi_probe(struct platform_device *dev) ...@@ -241,7 +241,8 @@ static int ppc4xx_msi_probe(struct platform_device *dev)
if (!msi_irqs) if (!msi_irqs)
return -ENODEV; return -ENODEV;
if (ppc4xx_setup_pcieh_hw(dev, res, msi)) err = ppc4xx_setup_pcieh_hw(dev, res, msi);
if (err)
goto error_out; goto error_out;
err = ppc4xx_msi_init_allocator(dev, msi); err = ppc4xx_msi_init_allocator(dev, msi);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment