[Intel-wired-lan] [PATCH 1/1] ixgbe: use kzalloc for allocating one thing

Singh, Krishneil K krishneil.k.singh at intel.com
Wed Sep 2 02:24:03 UTC 2015


-----Original Message-----
From: Intel-wired-lan [mailto:intel-wired-lan-bounces at lists.osuosl.org] On Behalf Of Maninder Singh
Sent: Thursday, June 18, 2015 9:08 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>; Vick, Matthew <matthew.vick 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: Maninder Singh <maninder1.s at samsung.com>; pankaj.m at samsung.com
Subject: [Intel-wired-lan] [PATCH 1/1] ixgbe: use kzalloc for allocating one thing

Use kzalloc rather than kcalloc(1..

The semantic patch that makes this change is as follows:

// <smpl>
@@
@@

- kcalloc(1,
+ kzalloc(
          ...)
// </smpl>

and removing checkpatch below CHECK:
CHECK: Prefer kzalloc(sizeof(*fwd_adapter)...) over kzalloc(sizeof(struct ixgbe_fwd_adapter)...)

Signed-off-by: Maninder Singh <maninder1.s at samsung.com>
Reviewed-by: Vaneet Narang <v.narang at samsung.com>
---
 
Tested-By: Krishneil Singh <krishneil.k.singh at intel.com>



More information about the Intel-wired-lan mailing list