[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20221227115431.rugxkddjfn3p7edw@pengutronix.de>
Date: Tue, 27 Dec 2022 12:54:31 +0100
From: Uwe Kleine-König <u.kleine-koenig@...gutronix.de>
To: Julia Lawall <julia.lawall@...ia.fr>
Cc: Nicolas Palix <nicolas.palix@...g.fr>,
linux-kernel@...r.kernel.org, kernel@...gutronix.de, cocci@...ia.fr
Subject: Re: coccinelle: How to remove a return at the end of a void function?
Hello Julia,
On Tue, Dec 27, 2022 at 12:26:50PM +0100, Julia Lawall wrote:
> > @p2@
> > identifier pdev;
> > @@
> > void rtsx_usb_sdmmc_drv_remove(struct platform_device *pdev) {
> > ...
> > -Return();
> > }
>
> You need when any on the ... to allow there to be Returns();s along the
> way.
\o/ that works fine, thanks
(i.e.
... when any
instead of ...)
Best regards
Uwe
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | https://www.pengutronix.de/ |
Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)
Powered by blists - more mailing lists