[Intel-wired-lan] [PATCH] i40e: Remove redundant memset
Bowers, AndrewX
andrewx.bowers at intel.com
Tue Jul 12 17:49:20 UTC 2016
> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at lists.osuosl.org] On
> Behalf Of Amitoj Kaur Chawla
> Sent: Wednesday, June 22, 2016 10:01 PM
> To: Kirsher, Jeffrey T <jeffrey.t.kirsher at intel.com>; Brandeburg, Jesse
> <jesse.brandeburg at intel.com>; Nelson, Shannon
> <shannon.nelson at intel.com>; Wyborny, Carolyn
> <carolyn.wyborny at intel.com>; Skidmore, Donald C
> <donald.c.skidmore at intel.com>; Allan, Bruce W <bruce.w.allan at intel.com>;
> Ronciak, John <john.ronciak at intel.com>; Williams, Mitch A
> <mitch.a.williams at intel.com>; intel-wired-lan at lists.osuosl.org;
> netdev at vger.kernel.org; linux-kernel at vger.kernel.org
> Cc: julia.lawall at lip6.fr
> Subject: [Intel-wired-lan] [PATCH] i40e: Remove redundant memset
>
> Remove redundant call to memset before a call to memcpy.
>
> The Coccinelle semantic patch used to make this change is as follows:
> @@
> expression e1,e2,e3,e4;
> @@
>
> - memset(e1,e2,e3);
> memcpy(e1,e4,e3);
>
> Signed-off-by: Amitoj Kaur Chawla <amitoj1606 at gmail.com>
> ---
> drivers/net/ethernet/intel/i40e/i40e_main.c | 1 -
> 1 file changed, 1 deletion(-)
Tested-by: Andrew Bowers <andrewx.bowers at intel.com>
More information about the Intel-wired-lan
mailing list