From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757253AbcG1LXP (ORCPT ); Thu, 28 Jul 2016 07:23:15 -0400 Received: from mx2.suse.de ([195.135.220.15]:43323 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757205AbcG1LXK (ORCPT ); Thu, 28 Jul 2016 07:23:10 -0400 Subject: Re: [PATCH v2] Coccinelle: Script to replace allocate and memset with zalloc functions To: Amitoj Kaur Chawla , Julia.Lawall@lip6.fr, Gilles.Muller@lip6.fr, nicolas.palix@imag.fr, cocci@systeme.lip6.fr, linux-kernel@vger.kernel.org References: <20160728082944.GA25524@amitoj-Inspiron-3542> From: Michal Marek Message-ID: <5799EB1B.3030203@suse.com> Date: Thu, 28 Jul 2016 13:23:07 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <20160728082944.GA25524@amitoj-Inspiron-3542> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2016-07-28 10:29, Amitoj Kaur Chawla wrote: > This script finds instances of allocate and memset which can be > replaced with a direct call to zalloc equivalent of a function. > > Signed-off-by: Amitoj Kaur Chawla > --- > Changes in v2: > -Modified commit message and subject There is still memcpy in the comment here: > +/// Prefer zalloc functions instead of using allocate and memcpy. :) Michal