All of lore.kernel.org
 help / color / mirror / Atom feed
From: mmarek@suse.com (Michal Marek)
To: cocci@systeme.lip6.fr
Subject: [Cocci] [PATCH v2] Coccinelle: Script to replace allocate and memset with zalloc functions
Date: Thu, 28 Jul 2016 13:23:07 +0200	[thread overview]
Message-ID: <5799EB1B.3030203@suse.com> (raw)
In-Reply-To: <20160728082944.GA25524@amitoj-Inspiron-3542>

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 <amitoj1606@gmail.com>
> ---
> 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

WARNING: multiple messages have this Message-ID (diff)
From: Michal Marek <mmarek@suse.com>
To: Amitoj Kaur Chawla <amitoj1606@gmail.com>,
	Julia.Lawall@lip6.fr, Gilles.Muller@lip6.fr,
	nicolas.palix@imag.fr, cocci@systeme.lip6.fr,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] Coccinelle: Script to replace allocate and memset with zalloc functions
Date: Thu, 28 Jul 2016 13:23:07 +0200	[thread overview]
Message-ID: <5799EB1B.3030203@suse.com> (raw)
In-Reply-To: <20160728082944.GA25524@amitoj-Inspiron-3542>

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 <amitoj1606@gmail.com>
> ---
> 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

  parent reply	other threads:[~2016-07-28 11:23 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-28  8:29 [Cocci] [PATCH v2] Coccinelle: Script to replace allocate and memset with zalloc functions Amitoj Kaur Chawla
2016-07-28  8:29 ` Amitoj Kaur Chawla
2016-07-28  8:30 ` [Cocci] " Julia Lawall
2016-07-28  8:30   ` Julia Lawall
2016-07-28 11:23 ` Michal Marek [this message]
2016-07-28 11:23   ` Michal Marek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5799EB1B.3030203@suse.com \
    --to=mmarek@suse.com \
    --cc=cocci@systeme.lip6.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.