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: Wei Yongjun <weiyongjun1@huawei.com>
[mpe: Add missing ';' to make it compile]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:
Wei Yongjun 2018-03-26 14:43:09 +00:00 committed by Michael Ellerman
parent f208638680
commit 9a2c1d31e6

View File

@ -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);