Re: [PATCH v2] Coccinelle: Script to replace allocate and memset with zalloc functions
From: Michal Marek
Date: Thu Jul 28 2016 - 07:23:18 EST
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@xxxxxxxxx>
> ---
> 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