-----Original Message-----
From: Intel-wired-lan [mailto:[email protected]] On 
Behalf Of Maninder Singh
Sent: Thursday, June 18, 2015 9:08 PM
To: Kirsher, Jeffrey T <[email protected]>; Brandeburg, Jesse 
<[email protected]>; Nelson, Shannon <[email protected]>; 
Wyborny, Carolyn <[email protected]>; Skidmore, Donald C 
<[email protected]>; Vick, Matthew <[email protected]>; Ronciak, 
John <[email protected]>; Williams, Mitch A <[email protected]>; 
[email protected]; [email protected]; 
[email protected]
Cc: Maninder Singh <[email protected]>; [email protected]
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 <[email protected]>
Reviewed-by: Vaneet Narang <[email protected]>
---
 
Tested-By: Krishneil Singh <[email protected]>

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

Reply via email to