projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f3c880
)
drivers/net/cxgb3: Use kzalloc for allocating only one thing
author
Julia Lawall
<julia@diku.dk>
Fri, 18 Dec 2009 21:16:52 +0000
(21:16 +0000)
committer
David S. Miller
<davem@davemloft.net>
Mon, 4 Jan 2010 05:22:28 +0000
(21:22 -0800)
Use kzalloc rather than kcalloc(1,...)
The semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)
// <smpl>
@@
@@
- kcalloc(1,
+ kzalloc(
...)
// </smpl>
Signed-off-by: Julia Lawall <julia@diku.dk>
Acked-by: Divy Le Ray <divy@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/cxgb3/cxgb3_offload.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/cxgb3/cxgb3_offload.c
b/drivers/net/cxgb3/cxgb3_offload.c
index 75064eea1d87eea36acb36b5351f7f5a16855adb..9498361119d6747dfdd7190a90982bcc9c8b87f5 100644
(file)
--- a/
drivers/net/cxgb3/cxgb3_offload.c
+++ b/
drivers/net/cxgb3/cxgb3_offload.c
@@
-1252,7
+1252,7
@@
int cxgb3_offload_activate(struct adapter *adapter)
struct mtutab mtutab;
unsigned int l2t_capacity;
- t = k
calloc(1,
sizeof(*t), GFP_KERNEL);
+ t = k
zalloc(
sizeof(*t), GFP_KERNEL);
if (!t)
return -ENOMEM;