Re: coccinelle: How to remove a return at the end of a void function?

From: Julia Lawall
Date: Tue Dec 27 2022 - 06:27:21 EST


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