soc/tegra: cbb: Remove unnecessary print function dev_err()
Commit Message
Eliminate the follow coccicheck warning:
./drivers/soc/tegra/cbb/tegra-cbb.c:142:3-10: line 142 is redundant
because platform_get_irq() already prints an error
./drivers/soc/tegra/cbb/tegra-cbb.c:152:2-9: line 152 is redundant
because platform_get_irq() already prints an error
Signed-off-by: KaiLong Wang <wangkailong@jari.cn>
---
drivers/soc/tegra/cbb/tegra-cbb.c | 2 --
1 file changed, 2 deletions(-)
@@ -139,7 +139,6 @@ int tegra_cbb_get_irq(struct platform_device *pdev, unsigned int *nonsec_irq,
if (num_intr == 2) {
irq = platform_get_irq(pdev, index);
if (irq <= 0) {
- dev_err(&pdev->dev, "failed to get non-secure IRQ: %d\n", irq);
return -ENOENT;
}
@@ -149,7 +148,6 @@ int tegra_cbb_get_irq(struct platform_device *pdev, unsigned int *nonsec_irq,
irq = platform_get_irq(pdev, index);
if (irq <= 0) {
- dev_err(&pdev->dev, "failed to get secure IRQ: %d\n", irq);
return -ENOENT;
}