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

From: Singh, Krishneil K
Date: Tue Sep 01 2015 - 22:24:15 EST



-----Original Message-----
From: Intel-wired-lan [mailto:intel-wired-lan-bounces@xxxxxxxxxxxxxxxx] On Behalf Of Maninder Singh
Sent: Thursday, June 18, 2015 9:08 PM
To: Kirsher, Jeffrey T <jeffrey.t.kirsher@xxxxxxxxx>; Brandeburg, Jesse <jesse.brandeburg@xxxxxxxxx>; Nelson, Shannon <shannon.nelson@xxxxxxxxx>; Wyborny, Carolyn <carolyn.wyborny@xxxxxxxxx>; Skidmore, Donald C <donald.c.skidmore@xxxxxxxxx>; Vick, Matthew <matthew.vick@xxxxxxxxx>; Ronciak, John <john.ronciak@xxxxxxxxx>; Williams, Mitch A <mitch.a.williams@xxxxxxxxx>; intel-wired-lan@xxxxxxxxxxxxxxxx; netdev@xxxxxxxxxxxxxxx; linux-kernel@xxxxxxxxxxxxxxx
Cc: Maninder Singh <maninder1.s@xxxxxxxxxxx>; pankaj.m@xxxxxxxxxxx
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@xxxxxxxxxxx>
Reviewed-by: Vaneet Narang <v.narang@xxxxxxxxxxx>
---

Tested-By: Krishneil Singh <krishneil.k.singh@xxxxxxxxx>

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/