From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============5353436634087940194==" MIME-Version: 1.0 From: kernel test robot Subject: [PATCH] omap: mcasp: fix platform_get_irq.cocci warnings Date: Sun, 11 Apr 2021 08:13:52 +0800 Message-ID: <20210411001352.GA56810@8f6693aca17b> In-Reply-To: <202104110848.vCCx0o3M-lkp@intel.com> List-Id: To: kbuild@lists.01.org --===============5353436634087940194== 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: fcb13c7789d9 ("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: 1a1b30085331a74521f22625564118640875d82e commit: fcb13c7789d9601a4316aa2e82cc011db1c265c4 [58/63] omap: mcasp: add o= map-mcasp.* and add to Kconfig, Makefile :::::: branch date: 3 hours ago :::::: commit date: 2 weeks 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 --===============5353436634087940194==--