lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Sun, 6 Nov 2022 22:12:12 +0800 (GMT+08:00)
From:   wangkailong@...i.cn
To:     thierry.reding@...il.com, jonathanh@...dia.com, sumitg@...dia.com
Cc:     linux-tegra@...r.kernel.org, linux-kernel@...r.kernel.org
Subject:  [PATCH] soc/tegra: cbb: Remove unnecessary print function
 dev_err()

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@...i.cn>
---
 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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ