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 <yuehaibing@huawei.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
This commit is contained in:
YueHaibing 2019-10-23 21:59:41 +08:00 committed by Joerg Roedel
parent d6d5df1db6
commit 565d454280
1 changed files with 1 additions and 3 deletions

View File

@ -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);