From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============4422361159975722177==" MIME-Version: 1.0 From: kernel test robot Subject: [PATCH] omap: mcasp: fix platform_get_irq.cocci warnings Date: Sun, 13 Dec 2020 05:00:11 +0800 Message-ID: <20201212210011.GA19017@02354e663adc> In-Reply-To: <202012130506.loXUmtHK-lkp@intel.com> List-Id: To: kbuild@lists.01.org --===============4422361159975722177== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable CC: kbuild-all(a)lists.01.org TO: Peter Ujfalusi From: kernel test robot sound/soc/ti/omap-mcasp.c:630:2-9: line 630 is redundant because platform_g= et_irq() already prints an error Remove dev_err() messages after platform_get_irq*() failures Generated by: scripts/coccinelle/api/platform_get_irq.cocci Fixes: c91a001a1b2f ("omap: mcasp: add omap-mcasp.* and add to Kconfig, Mak= efile") CC: Andrey Utkin Reported-by: kernel test robot Signed-off-by: kernel test robot --- tree: https://github.com/omap-audio/linux-audio peter/linux-next-wip head: 616dbf432c14c411575f7d278d2215534464e632 commit: c91a001a1b2f93d4e3d72cd48efcd9a868a6407e [79/94] omap: mcasp: add o= map-mcasp.* and add to Kconfig, Makefile :::::: branch date: 2 hours ago :::::: commit date: 2 hours ago Please take the patch only if it's a positive warning. Thanks! omap-mcasp.c | 1 - 1 file changed, 1 deletion(-) --- a/sound/soc/ti/omap-mcasp.c +++ b/sound/soc/ti/omap-mcasp.c @@ -627,7 +627,6 @@ static int asoc_mcasp_probe(struct platf = mcasp->irq =3D platform_get_irq(pdev, 0); if (mcasp->irq < 0) { - dev_err(&pdev->dev, "invalid IRQ number\n"); return mcasp->irq; } =20 --===============4422361159975722177==--