mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-13 01:08:50 +00:00
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:
parent
f208638680
commit
9a2c1d31e6
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user