Content-Type: multipart/mixed; boundary="===============7849874638576624430==" MIME-Version: 1.0 From: kernel test robot Subject: [PATCH] char: hw_random: Kconfig: fix platform_get_irq.cocci warnings Date: Sat, 13 Jun 2020 05:27:14 +0800 Message-ID: <20200612212714.GA44684@1f3e5f03ccaf> In-Reply-To: <202006130507.QQMm1M45%lkp@intel.com> List-Id: To: kbuild@lists.01.org --===============7849874638576624430== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable CC: kbuild-all(a)lists.01.org TO: Keerthy CC: Tero Kristo CC: Deepak Saxena CC: Matt Mackall CC: Herbert Xu CC: Arnd Bergmann CC: "Greg Kroah-Hartman" CC: linux-crypto(a)vger.kernel.org CC: linux-kernel(a)vger.kernel.org From: kernel test robot drivers/char/hw_random/omap-rng.c:396:3-10: line 396 is redundant because p= latform_get_irq() already prints an error Remove dev_err() messages after platform_get_irq*() failures Generated by: scripts/coccinelle/api/platform_get_irq.cocci Fixes: 2ebf5f1440b6 ("char: hw_random: Kconfig: For ARCH_K3 add a dependenc= y on SA2UL") CC: Keerthy Signed-off-by: kernel test robot --- tree: git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git ti-linux-5.4.y head: 134a1b1f8814115e2dd115b67082321bf9e63cc1 commit: 2ebf5f1440b6cee9b00c6f30c710c8dff8c8591f [2374/7050] char: hw_rando= m: Kconfig: For ARCH_K3 add a dependency on SA2UL :::::: branch date: 6 hours ago :::::: commit date: 5 months ago Please take the patch only if it's a positive warning. Thanks! omap-rng.c | 2 -- 1 file changed, 2 deletions(-) --- a/drivers/char/hw_random/omap-rng.c +++ b/drivers/char/hw_random/omap-rng.c @@ -393,8 +393,6 @@ static int of_get_omap_rng_device_detail of_device_is_compatible(dev->of_node, "inside-secure,safexcel-eip76")= ) { irq =3D platform_get_irq(pdev, 0); if (irq < 0) { - dev_err(dev, "%s: error getting IRQ resource - %d\n", - __func__, irq); return irq; } =20 --===============7849874638576624430==--