From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============9126799504597730033==" MIME-Version: 1.0 From: kernel test robot Subject: [PATCH] power: supply: goldfish: fix platform_get_irq.cocci warnings Date: Sun, 21 Nov 2021 22:35:07 +0800 Message-ID: <20211121143507.GA8518@4568f2500f85> In-Reply-To: <202111212253.l2JP3cg5-lkp@intel.com> List-Id: To: kbuild@lists.01.org --===============9126799504597730033== 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-kernel(a)vger.kernel.org TO: Roman Kiryanov CC: Sebastian Reichel CC: linux-pm(a)vger.kernel.org CC: linux-kernel(a)vger.kernel.org From: kernel test robot drivers/power/supply/goldfish_battery.c:225:2-9: line 225 is redundant beca= use 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: Roman Kiryanov Reported-by: kernel test robot Signed-off-by: kernel test robot --- tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git = master head: 923dcc5eb0c111eccd51cc7ce1658537e3c38b25 commit: 570b7c0ea20c0156411394bc215114f7b1dc18ff power: supply: goldfish: R= emove the GOLDFISH dependency :::::: branch date: 17 hours ago :::::: commit date: 8 months ago Please take the patch only if it's a positive warning. Thanks! goldfish_battery.c | 1 - 1 file changed, 1 deletion(-) --- a/drivers/power/supply/goldfish_battery.c +++ b/drivers/power/supply/goldfish_battery.c @@ -222,7 +222,6 @@ static int goldfish_battery_probe(struct = data->irq =3D platform_get_irq(pdev, 0); if (data->irq < 0) { - dev_err(&pdev->dev, "platform_get_irq failed\n"); return -ENODEV; } =20 --===============9126799504597730033==--