Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -1105,10 +1105,8 @@ static int ipmmu_probe(struct platform_device *pdev)
	/* Root devices have mandatory IRQs */
	if (ipmmu_is_root(mmu)) {
		irq = platform_get_irq(pdev, 0);
		if (irq < 0) {
			dev_err(&pdev->dev, "no IRQ found\n");
		if (irq < 0)
			return irq;
		}

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