soc/tegra: cbb: Remove unnecessary print function dev_err()

The print function dev_err() is redundant because platform_get_irq()
already prints an error.

./drivers/soc/tegra/cbb/tegra-cbb.c:130:3-10: line 130 is redundant because platform_get_irq() already prints an error.
./drivers/soc/tegra/cbb/tegra-cbb.c:140:2-9: line 140 is redundant because platform_get_irq() already prints an error.

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=4879
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
This commit is contained in:
Jiapeng Chong 2023-05-06 17:07:35 +08:00 committed by Thierry Reding
parent ac60f06215
commit 10f975f8b0
1 changed files with 2 additions and 6 deletions

View File

@ -122,20 +122,16 @@ int tegra_cbb_get_irq(struct platform_device *pdev, unsigned int *nonsec_irq,
if (num_intr == 2) { if (num_intr == 2) {
irq = platform_get_irq(pdev, index); irq = platform_get_irq(pdev, index);
if (irq <= 0) { if (irq <= 0)
dev_err(&pdev->dev, "failed to get non-secure IRQ: %d\n", irq);
return -ENOENT; return -ENOENT;
}
*nonsec_irq = irq; *nonsec_irq = irq;
index++; index++;
} }
irq = platform_get_irq(pdev, index); irq = platform_get_irq(pdev, index);
if (irq <= 0) { if (irq <= 0)
dev_err(&pdev->dev, "failed to get secure IRQ: %d\n", irq);
return -ENOENT; return -ENOENT;
}
*sec_irq = irq; *sec_irq = irq;