From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8EEA9C4332F for ; Tue, 27 Dec 2022 11:27:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231609AbiL0L1I (ORCPT ); Tue, 27 Dec 2022 06:27:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35238 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231682AbiL0L0y (ORCPT ); Tue, 27 Dec 2022 06:26:54 -0500 Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49E846568 for ; Tue, 27 Dec 2022 03:26:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=date:from:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=fbDuEclhbUSpZiJFnhFQKq7fs2reDAEBvERmqyYTs9Q=; b=UnXDBHNRO9vm7N7B0o0Z6X5caoJWsuXZQMOTQJDUv/t0VX+uggG4hjAA T9ZBEifuFF6b4qk2W6mN+Ydh0SLijdyFOwnW3JChAJkP/0MqTEj9wWnuc WDc2whMT1V/+d5Z/d4oTLou2gwWzMTYKegZ46PKYLR/ofCpIutxk+oc4x Y=; Authentication-Results: mail2-relais-roc.national.inria.fr; dkim=none (message not signed) header.i=none; spf=SoftFail smtp.mailfrom=julia.lawall@inria.fr; dmarc=fail (p=none dis=none) d=inria.fr X-IronPort-AV: E=Sophos;i="5.96,278,1665439200"; d="scan'208";a="85148369" Received: from dt-lawall.paris.inria.fr ([128.93.67.65]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Dec 2022 12:26:51 +0100 Date: Tue, 27 Dec 2022 12:26:50 +0100 (CET) From: Julia Lawall To: =?ISO-8859-15?Q?Uwe_Kleine-K=F6nig?= cc: Nicolas Palix , linux-kernel@vger.kernel.org, kernel@pengutronix.de, cocci@inria.fr Subject: Re: coccinelle: How to remove a return at the end of a void function? In-Reply-To: <20221227095517.mzjmqse5wvaielev@pengutronix.de> Message-ID: References: <20221224115657.kqyocti356cwm7hc@pengutronix.de> <20221225212011.6il5egocxtx5zupa@pengutronix.de> <20221227095517.mzjmqse5wvaielev@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > @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