Skip to content

Commit b26fc70

Browse files
Dan CarpenterMani-Sadhasivam
authored andcommitted
PCI: xgene-msi: Return negative -EINVAL in xgene_msi_handler_setup()
There is a typo so we accidentally return positive EINVAL instead of negative -EINVAL. Add the missing '-' character. Fixes: 6aceb36 ("PCI: xgene-msi: Restructure handler setup/teardown") Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org> Signed-off-by: Manivannan Sadhasivam <mani@kernel.org> Acked-by: Marc Zyngier <maz@kernel.org> Link: https://patch.msgid.link/aIzCbVd93ivPinne@stanley.mountain
1 parent 8f5ae30 commit b26fc70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/pci/controller/pci-xgene-msi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ static int xgene_msi_handler_setup(struct platform_device *pdev)
311311
msi_val = xgene_msi_int_read(xgene_msi, i);
312312
if (msi_val) {
313313
dev_err(&pdev->dev, "Failed to clear spurious IRQ\n");
314-
return EINVAL;
314+
return -EINVAL;
315315
}
316316

317317
irq = platform_get_irq(pdev, i);

0 commit comments

Comments
 (0)