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@xxxxxxx> --- drivers/soc/tegra/cbb/tegra-cbb.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/soc/tegra/cbb/tegra-cbb.c b/drivers/soc/tegra/cbb/tegra-cbb.c index d200937353c7..33e261301132 100644 --- a/drivers/soc/tegra/cbb/tegra-cbb.c +++ b/drivers/soc/tegra/cbb/tegra-cbb.c @@ -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; } -- 2.25.1