]> git.baikalelectronics.ru Git - kernel.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)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 2 Sep 2015 00:01:17 +0000 (17:01 -0700)
commit59f2bc3cb147c86c4f4613f723d8d95b1faef5c6
tree129d84da648313b965776cbb95c9e7e5d5320a47
parent05f1e2f0637ac0c891b69c3c65083de372866872
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@samsung.com>
Reviewed-by: Vaneet Narang <v.narang@samsung.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c