diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2017-04-26 17:00:01 +1000 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2017-04-26 17:00:01 +1000 |
commit | 156bc9d0af408cf0c7cdc27cd02791d340adf6bd (patch) | |
tree | 4a1c94470cb82e7e8c88a3270d4595cbdaed9d68 /drivers/net/ethernet/chelsio/cxgb3/l2t.c | |
parent | 3f6ac2b885a192bf688b535a4f9dc329bc7e97ff (diff) | |
parent | b7796f38de8afef781e52f484599845de84f9cf4 (diff) |
Merge branch 'akpm/master'
Diffstat (limited to 'drivers/net/ethernet/chelsio/cxgb3/l2t.c')
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb3/l2t.c | 8 |
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); -} - |