cocci.inria.fr archive mirror
 help / color / mirror / Atom feed
From: Julia Lawall <julia.lawall@inria.fr>
To: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
Cc: Nicolas Palix <nicolas.palix@imag.fr>,
	linux-kernel@vger.kernel.org,  kernel@pengutronix.de,
	cocci@inria.fr
Subject: Re: [cocci] coccinelle: How to remove a return at the end of a void function?
Date: Tue, 27 Dec 2022 12:26:50 +0100 (CET)	[thread overview]
Message-ID: <e39bbae4-7929-b1b0-ea42-11825d98e43e@inria.fr> (raw)
In-Reply-To: <20221227095517.mzjmqse5wvaielev@pengutronix.de>

> @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.

julia

  reply	other threads:[~2022-12-27 11:26 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-24 11:56 [cocci] coccinelle: How to remove a return at the end of a void function? Uwe Kleine-König
2022-12-24 12:28 ` Julia Lawall
2022-12-25 21:20   ` Uwe Kleine-König
2022-12-26 16:02     ` Julia Lawall
2022-12-27  9:55       ` Uwe Kleine-König
2022-12-27 11:26         ` Julia Lawall [this message]
2022-12-27 11:54           ` Uwe Kleine-König

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=e39bbae4-7929-b1b0-ea42-11825d98e43e@inria.fr \
    --to=julia.lawall@inria.fr \
    --cc=cocci@inria.fr \
    --cc=kernel@pengutronix.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nicolas.palix@imag.fr \
    --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;
as well as URLs for NNTP newsgroup(s).