From: Markus Elfring Date: Fri, 15 Feb 2019 07:50:27 +0000 Subject: Re: [v4] coccinelle: semantic patch for missing put_device() Message-Id: List-Id: References: <201902151452197117145@zte.com.cn> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Julia Lawall Cc: Yi Wang , kernel-janitors@vger.kernel.org, Michal Marek , Wen Yang , Nicolas Palix , linux-kernel@vger.kernel.org, cocci@systeme.lip6.fr, Cheng Shengyu , Wen Yang >> So I plan to modify the following to capture both cases: >> -local idexpression id; >> +expression id; > > I'm not sure that this is a good idea. Why have you got doubts here? > There is likely no need for a put in the latter case. I have got understanding difficulties for such information. What did you try to express with this sentence finally? Regards, Markus