From mboxrd@z Thu Jan 1 00:00:00 1970 From: Markus Elfring Date: Tue, 19 Feb 2019 08:12:11 +0000 Subject: Re: [v6] coccinelle: semantic code search for missing put_device() Message-Id: List-Id: References: <201902191014156680299@zte.com.cn> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Julia Lawall , Wen Yang Cc: kernel-janitors@vger.kernel.org, Michal Marek , Wen Yang , Nicolas Palix , linux-kernel@vger.kernel.org, Cheng Shengyu , cocci@systeme.lip6.fr >> Although we have tested these two methods in the existing kernel code, >> considering the evolution of the kernel code, these special cases may occur, so we are willing to take them into account. >> We plan to modify the code like this: >> >> id = of_find_device_by_node@p1(x) >> -... when != e = id >> +... when != e = (T)id >> + when != id = (T)e > > This change is fine with me. Thanks for another positive feedback on such software implementation details. Regards, Markus