Commit 565d4542 authored by YueHaibing's avatar YueHaibing Committed by Joerg Roedel

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: default avatarYueHaibing <yuehaibing@huawei.com>
Reviewed-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
parent d6d5df1d
...@@ -1105,10 +1105,8 @@ static int ipmmu_probe(struct platform_device *pdev) ...@@ -1105,10 +1105,8 @@ static int ipmmu_probe(struct platform_device *pdev)
/* Root devices have mandatory IRQs */ /* Root devices have mandatory IRQs */
if (ipmmu_is_root(mmu)) { if (ipmmu_is_root(mmu)) {
irq = platform_get_irq(pdev, 0); irq = platform_get_irq(pdev, 0);
if (irq < 0) { if (irq < 0)
dev_err(&pdev->dev, "no IRQ found\n");
return irq; return irq;
}
ret = devm_request_irq(&pdev->dev, irq, ipmmu_irq, 0, ret = devm_request_irq(&pdev->dev, irq, ipmmu_irq, 0,
dev_name(&pdev->dev), mmu); dev_name(&pdev->dev), mmu);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment