drivers/char/hw_random/omap-rng.c:396:3-10: line 396 is redundant because platform_get_irq() already prints an error
kernel test robot
build botCC: kbuild-all(a)lists.01.org
TO: Keerthy <[email protected]>
CC: Tero Kristo <[email protected]>
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_random: Kconfig: For ARCH_K3 add a dependency on SA2UL
:::::: branch date: 6 hours ago
:::::: commit date: 5 months ago
config: arm64-randconfig-c004-20200612 (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
If you fix the issue, kindly add following tag as appropriate
coccinelle warnings: (new ones prefixed by >>)
>> drivers/char/hw_random/omap-rng.c:396:3-10: line 396 is redundant because platform_get_irq() already prints an error
Please review and possibly fold the followup patch.
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
kernel test robot
build bot[PATCH] char: hw_random: Kconfig: fix platform_get_irq.cocci warnings
CC: kbuild-all(a)lists.01.org TO: Keerthy <[email protected]> CC: Tero Kristo <[email protected]> CC: Deepak Saxena <[email protected]> CC: Matt Mackall <[email protected]> CC: Herbert Xu…
CC: kbuild-all(a)lists.01.org
TO: Keerthy <[email protected]>
CC: Tero Kristo <[email protected]>
CC: Deepak Saxena <[email protected]>
CC: Matt Mackall <[email protected]>
CC: Herbert Xu <[email protected]>
CC: Arnd Bergmann <[email protected]>
CC: "Greg Kroah-Hartman" <[email protected]>
CC: linux-crypto(a)vger.kernel.org
CC: linux-kernel(a)vger.kernel.org
From: kernel test robot <[email protected]>
drivers/char/hw_random/omap-rng.c:396:3-10: line 396 is redundant because platform_get_irq() already prints an error
Remove dev_err() messages after platform_get_irq*() failures
Generated by: scripts/coccinelle/api/platform_get_irq.cocci
---
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_random: 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(-)
drivers/char/hw_random/omap-rng.c +0 -2
@@ -393,8 +393,6 @@ static int of_get_omap_rng_device_detail of_device_is_compatible(dev->of_node, "inside-secure,safexcel-eip76")) { irq =platform_get_irq (pdev,0 );if (irq <0 ) { -dev_err (dev,"%s: error getting IRQ resource - %d\n" , - __func__, irq);return irq; }