diff options
author | Julia Lawall <julia@diku.dk> | 2009-12-18 16:16:52 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-01-04 00:22:28 -0500 |
commit | 75ed0a897208c3273fd8dc0f71e1417dba5a049b (patch) | |
tree | c3da4c442889ab88f10c273a7e901da4b2a16261 /drivers/net/cxgb3 | |
parent | 1f3c8804acba841b5573b953f5560d2683d2db0d (diff) |
drivers/net/cxgb3: Use kzalloc for allocating only one thing
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>
Diffstat (limited to 'drivers/net/cxgb3')
-rw-r--r-- | drivers/net/cxgb3/cxgb3_offload.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/cxgb3/cxgb3_offload.c b/drivers/net/cxgb3/cxgb3_offload.c index 75064eea1d87..9498361119d6 100644 --- 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) | |||
1252 | struct mtutab mtutab; | 1252 | struct mtutab mtutab; |
1253 | unsigned int l2t_capacity; | 1253 | unsigned int l2t_capacity; |
1254 | 1254 | ||
1255 | t = kcalloc(1, sizeof(*t), GFP_KERNEL); | 1255 | t = kzalloc(sizeof(*t), GFP_KERNEL); |
1256 | if (!t) | 1256 | if (!t) |
1257 | return -ENOMEM; | 1257 | return -ENOMEM; |
1258 | 1258 | ||