-----Original Message----- From: Intel-wired-lan [mailto:intel-wired-lan-boun...@lists.osuosl.org] On Behalf Of Maninder Singh Sent: Thursday, June 18, 2015 9:08 PM To: Kirsher, Jeffrey T <jeffrey.t.kirs...@intel.com>; Brandeburg, Jesse <jesse.brandeb...@intel.com>; Nelson, Shannon <shannon.nel...@intel.com>; Wyborny, Carolyn <carolyn.wybo...@intel.com>; Skidmore, Donald C <donald.c.skidm...@intel.com>; Vick, Matthew <matthew.v...@intel.com>; Ronciak, John <john.ronc...@intel.com>; Williams, Mitch A <mitch.a.willi...@intel.com>; intel-wired-...@lists.osuosl.org; netdev@vger.kernel.org; linux-ker...@vger.kernel.org Cc: Maninder Singh <maninder...@samsung.com>; panka...@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 <maninder...@samsung.com> Reviewed-by: Vaneet Narang <v.nar...@samsung.com> --- Tested-By: Krishneil Singh <krishneil.k.si...@intel.com> -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html