From: Andy Shevchenko <andy@kernel.org>
To: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>,
kernel@pengutronix.de, linux-kernel@vger.kernel.org,
Paul Burton <paulburton@kernel.org>
Subject: Re: [PATCH 3/3] auxdisplay: img-ascii-lcd: Convert to platform remove callback returning void
Date: Tue, 12 Mar 2024 17:36:03 +0200 [thread overview]
Message-ID: <ZfB2Y1P5VRZWEUqu@smile.fi.intel.com> (raw)
In-Reply-To: <r5ydocz3u3ng6voax2iveoqvvqpuo6s3defjkpqzmuoj222clw@76ilb4kbjlrw>
On Tue, Mar 12, 2024 at 11:27:37AM +0100, Uwe Kleine-König wrote:
> On Tue, Mar 12, 2024 at 09:17:54AM +0100, Geert Uytterhoeven wrote:
> > On Mon, Mar 11, 2024 at 10:59 PM Uwe Kleine-König
> > <u.kleine-koenig@pengutronix.de> wrote:
> > > The .remove() callback for a platform driver returns an int which makes
> > > many driver authors wrongly assume it's possible to do error handling by
> > > returning an error code. However the value returned is ignored (apart
> > > from emitting a warning) and this typically results in resource leaks.
> > >
> > > To improve here there is a quest to make the remove callback return
> > > void. In the first step of this quest all drivers are converted to
> > > .remove_new(), which already returns void. Eventually after all drivers
> > > are converted, .remove_new() will be renamed to .remove().
> > >
> > > Trivially convert this driver from always returning zero in the remove
> > > callback to the void returning variant.
> > >
> > > Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
> >
> > Thanks for your patch!
> >
> > > --- a/drivers/auxdisplay/img-ascii-lcd.c
> > > +++ b/drivers/auxdisplay/img-ascii-lcd.c
> > > @@ -279,13 +279,12 @@ static int img_ascii_lcd_probe(struct platform_device *pdev)
> > > *
> > > * Return: 0
> >
> > Please remove this line.
>
> Good catch, thanks.
>
> @Andy: Should I resend this patch? Or the whole series? Or do you want
> to fixup while applying?
Not big deal, I'll fix it whilst applying.
Thank you!
--
With Best Regards,
Andy Shevchenko
next prev parent reply other threads:[~2024-03-12 15:36 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-11 21:59 [PATCH 0/3] auxdisplay: Convert to platform remove callback returning void Uwe Kleine-König
2024-03-11 21:59 ` [PATCH 1/3] auxdisplay: cfag12864bfb: " Uwe Kleine-König
2024-03-12 8:16 ` Geert Uytterhoeven
2024-03-12 10:47 ` Miguel Ojeda
2024-03-11 21:59 ` [PATCH 2/3] auxdisplay: hd44780: " Uwe Kleine-König
2024-03-12 8:16 ` Geert Uytterhoeven
2024-03-11 21:59 ` [PATCH 3/3] auxdisplay: img-ascii-lcd: " Uwe Kleine-König
2024-03-12 8:17 ` Geert Uytterhoeven
2024-03-12 10:27 ` Uwe Kleine-König
2024-03-12 15:36 ` Andy Shevchenko [this message]
2024-03-12 15:38 ` [PATCH 0/3] auxdisplay: " Andy Shevchenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZfB2Y1P5VRZWEUqu@smile.fi.intel.com \
--to=andy@kernel.org \
--cc=geert@linux-m68k.org \
--cc=kernel@pengutronix.de \
--cc=linux-kernel@vger.kernel.org \
--cc=paulburton@kernel.org \
--cc=u.kleine-koenig@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox