From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============8330161774833311266==" MIME-Version: 1.0 From: kernel test robot Subject: [PATCH] iio: adc: fix platform_get_irq.cocci warnings Date: Thu, 19 Aug 2021 22:02:30 +0800 Message-ID: <20210819140230.GA17272@f306fac2d22d> In-Reply-To: <202108192227.RJ0Vzbqa-lkp@intel.com> List-Id: To: kbuild@lists.01.org --===============8330161774833311266== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable CC: kbuild-all(a)lists.01.org CC: Linux Memory Management List TO: Lad Prabhakar CC: Jonathan Cameron CC: Biju Das CC: "Lars-Peter Clausen" CC: linux-iio(a)vger.kernel.org CC: linux-renesas-soc(a)vger.kernel.org CC: linux-kernel(a)vger.kernel.org From: kernel test robot drivers/iio/adc/rzg2l_adc.c:510:2-9: line 510 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 CC: Lad Prabhakar Reported-by: kernel test robot Signed-off-by: kernel test robot --- tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git= master head: 33e65b1f975cd2814fc0ea9617250fc4c1d7a553 commit: d484c21bacfa8bd2fa9fc26393ec59108f508c4c [7455/9113] iio: adc: Add = driver for Renesas RZ/G2L A/D converter :::::: branch date: 5 hours ago :::::: commit date: 4 days ago Please take the patch only if it's a positive warning. Thanks! rzg2l_adc.c | 1 - 1 file changed, 1 deletion(-) --- a/drivers/iio/adc/rzg2l_adc.c +++ b/drivers/iio/adc/rzg2l_adc.c @@ -507,7 +507,6 @@ static int rzg2l_adc_probe(struct platfo = irq =3D platform_get_irq(pdev, 0); if (irq < 0) { - dev_err(dev, "no irq resource\n"); return irq; } =20 --===============8330161774833311266==--