summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/chelsio/cxgb3/l2t.c
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2017-04-26 17:00:01 +1000
committerStephen Rothwell <sfr@canb.auug.org.au>2017-04-26 17:00:01 +1000
commit156bc9d0af408cf0c7cdc27cd02791d340adf6bd (patch)
tree4a1c94470cb82e7e8c88a3270d4595cbdaed9d68 /drivers/net/ethernet/chelsio/cxgb3/l2t.c
parent3f6ac2b885a192bf688b535a4f9dc329bc7e97ff (diff)
parentb7796f38de8afef781e52f484599845de84f9cf4 (diff)
Merge branch 'akpm/master'
Diffstat (limited to 'drivers/net/ethernet/chelsio/cxgb3/l2t.c')
-rw-r--r--drivers/net/ethernet/chelsio/cxgb3/l2t.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb3/l2t.c b/drivers/net/ethernet/chelsio/cxgb3/l2t.c
index 52063587e1e9..26264125865f 100644
--- a/drivers/net/ethernet/chelsio/cxgb3/l2t.c
+++ b/drivers/net/ethernet/chelsio/cxgb3/l2t.c
@@ -444,7 +444,7 @@ struct l2t_data *t3_init_l2t(unsigned int l2t_capacity)
struct l2t_data *d;
int i, size = sizeof(*d) + l2t_capacity * sizeof(struct l2t_entry);
- d = cxgb_alloc_mem(size);
+ d = kvzalloc(size, GFP_KERNEL);
if (!d)
return NULL;
@@ -462,9 +462,3 @@ struct l2t_data *t3_init_l2t(unsigned int l2t_capacity)
}
return d;
}
-
-void t3_free_l2t(struct l2t_data *d)
-{
- cxgb_free_mem(d);
-}
-