Skip to content

Commit 565d454

Browse files
YueHaibingjoergroedel
authored andcommitted
iommu/ipmmu-vmsa: Remove dev_err() on platform_get_irq() failure
platform_get_irq() will call dev_err() itself on failure, so there is no need for the driver to also do this. This is detected by coccinelle. Signed-off-by: YueHaibing <[email protected]> Reviewed-by: Geert Uytterhoeven <[email protected]> Signed-off-by: Joerg Roedel <[email protected]>
1 parent d6d5df1 commit 565d454

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/iommu/ipmmu-vmsa.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1105,10 +1105,8 @@ static int ipmmu_probe(struct platform_device *pdev)
11051105
/* Root devices have mandatory IRQs */
11061106
if (ipmmu_is_root(mmu)) {
11071107
irq = platform_get_irq(pdev, 0);
1108-
if (irq < 0) {
1109-
dev_err(&pdev->dev, "no IRQ found\n");
1108+
if (irq < 0)
11101109
return irq;
1111-
}
11121110

11131111
ret = devm_request_irq(&pdev->dev, irq, ipmmu_irq, 0,
11141112
dev_name(&pdev->dev), mmu);

0 commit comments

Comments
 (0)