drivers/mailbox/platform_mhu.c:141:3-10: line 141 is redundant because platform_get_irq() already prints an error
kernel test robot
build botCC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: YueHaibing <[email protected]>
CC: "Greg Kroah-Hartman" <[email protected]>
CC: Stephen Boyd <[email protected]>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 3208167a865e862fff5045d7910387941ff7e114 commit: ca7ce5a2710ad2a57bf7d0c4c712590bb69a5e1c coccinelle: platform_get_irq: Fix parse error date: 11 months ago
:::::: branch date: 3 hours ago
:::::: commit date: 11 months ago
config: x86_64-randconfig-c002-20200803 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-14) 9.3.0
If you fix the issue, kindly add following tag as appropriate
coccinelle warnings: (new ones prefixed by >>)
>> drivers/mailbox/platform_mhu.c:141:3-10: line 141 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] coccinelle: platform_get_irq: fix platform_get_irq.cocci warnings
CC: kbuild-all(a)lists.01.org CC: linux-kernel(a)vger.kernel.org TO: YueHaibing <[email protected]> CC: "Greg Kroah-Hartman" <[email protected]> CC: Stephen Boyd <[email protected]>…
CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: YueHaibing <[email protected]>
CC: "Greg Kroah-Hartman" <[email protected]>
CC: Stephen Boyd <[email protected]>
CC: Jassi Brar <[email protected]>
CC: linux-kernel(a)vger.kernel.org
From: kernel test robot <[email protected]>
drivers/mailbox/platform_mhu.c:141:3-10: line 141 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: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 3208167a865e862fff5045d7910387941ff7e114 commit: ca7ce5a2710ad2a57bf7d0c4c712590bb69a5e1c coccinelle: platform_get_irq: Fix parse error
:::::: branch date: 3 hours ago
:::::: commit date: 11 months ago
Please take the patch only if it's a positive warning. Thanks!
platform_mhu.c | 1 - 1 file changed, 1 deletion(-)
drivers/mailbox/platform_mhu.c +0 -1
@@ -138,7 +138,6 @@ static int platform_mhu_probe(struct pla mhu->chan[i].con_priv = &mhu->mlink[i]; mhu->mlink[i].irq =platform_get_irq (pdev, i);if (mhu->mlink[i].irq <0 ) { -dev_err (dev,"failed to get irq%d\n" , i);return mhu->mlink[i].irq; } mhu->mlink[i].rx_reg = mhu->base + platform_mhu_reg[i];