Skip to content

Commit 4d08d2a

Browse files
Dan Carpentergregkh
authored andcommitted
PCI: xgene-msi: Return negative -EINVAL in xgene_msi_handler_setup()
[ Upstream commit b26fc70 ] 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 <[email protected]> Signed-off-by: Manivannan Sadhasivam <[email protected]> Acked-by: Marc Zyngier <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Sasha Levin <[email protected]>
1 parent 325ad20 commit 4d08d2a

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)