From: wangkailong@jari.cn
To: thierry.reding@gmail.com, jonathanh@nvidia.com, sumitg@nvidia.com
Cc: linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH] soc/tegra: cbb: Remove unnecessary print function dev_err()
Date: Sun, 6 Nov 2022 22:12:12 +0800 (GMT+08:00) [thread overview]
Message-ID: <564ff856.bc.1844d48df8a.Coremail.wangkailong@jari.cn> (raw)
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(-)
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
next reply other threads:[~2022-11-06 14:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-06 14:12 wangkailong [this message]
2023-05-06 9:07 Jiapeng Chong
2023-07-27 16:47 ` Thierry Reding
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=564ff856.bc.1844d48df8a.Coremail.wangkailong@jari.cn \
--to=wangkailong@jari.cn \
--cc=jonathanh@nvidia.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tegra@vger.kernel.org \
--cc=sumitg@nvidia.com \
--cc=thierry.reding@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®