Skip to content

Commit 9a2c1d3

Browse files
Wei Yongjunmpe
authored andcommitted
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 <[email protected]> [mpe: Add missing ';' to make it compile] Signed-off-by: Michael Ellerman <[email protected]>
1 parent f208638 commit 9a2c1d3

File tree

1 file changed

+2
-1
lines changed
  • arch/powerpc/platforms/4xx

1 file changed

+2
-1
lines changed

arch/powerpc/platforms/4xx/msi.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,8 @@ static int ppc4xx_msi_probe(struct platform_device *dev)
241241
if (!msi_irqs)
242242
return -ENODEV;
243243

244-
if (ppc4xx_setup_pcieh_hw(dev, res, msi))
244+
err = ppc4xx_setup_pcieh_hw(dev, res, msi);
245+
if (err)
245246
goto error_out;
246247

247248
err = ppc4xx_msi_init_allocator(dev, msi);

0 commit comments

Comments
 (0)