提交 9a2c1d31 编写于 作者: W Wei Yongjun 提交者: 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: NWei Yongjun <weiyongjun1@huawei.com>
[mpe: Add missing ';' to make it compile]
Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
上级 f2086386
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册