diff options
author | Jiapeng Chong <jiapeng.chong@linux.alibaba.com> | 2023-05-06 12:07:35 +0300 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2023-07-27 19:46:37 +0300 |
commit | 10f975f8b0e8e563bf1e5c2f5e4ebada29fa7edc (patch) | |
tree | 14a8e0ceab561fefbd7368898f07b449a7b1e4e5 /drivers/soc/tegra | |
parent | ac60f06215fda9ea10ac0b2a3bc3a1e7ba4a8fd1 (diff) | |
download | linux-10f975f8b0e8e563bf1e5c2f5e4ebada29fa7edc.tar.xz |
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>
Diffstat (limited to 'drivers/soc/tegra')
-rw-r--r-- | drivers/soc/tegra/cbb/tegra-cbb.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/soc/tegra/cbb/tegra-cbb.c b/drivers/soc/tegra/cbb/tegra-cbb.c index be76c6aa131c..84ab46c9d9f5 100644 --- a/drivers/soc/tegra/cbb/tegra-cbb.c +++ b/drivers/soc/tegra/cbb/tegra-cbb.c @@ -122,20 +122,16 @@ 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); + if (irq <= 0) return -ENOENT; - } *nonsec_irq = irq; index++; } irq = platform_get_irq(pdev, index); - if (irq <= 0) { - dev_err(&pdev->dev, "failed to get secure IRQ: %d\n", irq); + if (irq <= 0) return -ENOENT; - } *sec_irq = irq; |