]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ixgbe: use kzalloc for allocating one thing
authorManinder Singh <maninder1.s@samsung.com>
Fri, 19 Jun 2015 04:07:55 +0000 (09:37 +0530)
committerSantosh Shilimkar <santosh.shilimkar@oracle.com>
Mon, 12 Oct 2015 16:04:58 +0000 (09:04 -0700)
commitbe7fc1eb75b5ae2e47dbe4653838c92dc6444dac
treea34203834b0d06b6efbced901ee2b79cd8e3049c
parentcbfe86c4e693009bff6348fed3ffc61cda46ea2f
ixgbe: use kzalloc for allocating one thing

Orabug: 21918732

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@samsung.com>
Reviewed-by: Vaneet Narang <v.narang@samsung.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
(cherry picked from commit bc52f951e344b2ec64388c71890d88c5fc154a41)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c