diff options
author | Yunsheng Lin <linyunsheng@huawei.com> | 2019-05-06 10:48:52 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-05-07 10:37:14 -0700 |
commit | 77296bf6a7b806b00a62b53436b1e8429becd244 (patch) | |
tree | b868061e4bce3d7be87ab96209ae1a9087b55be2 /net/sched/sch_fq.c | |
parent | net: hns3: some cleanup for struct hns3_enet_ring (diff) | |
download | linux-dev-77296bf6a7b806b00a62b53436b1e8429becd244.tar.xz linux-dev-77296bf6a7b806b00a62b53436b1e8429becd244.zip |
net: hns3: use devm_kcalloc when allocating desc_cb
This patch uses devm_kcalloc instead of kcalloc when allocating
ring->desc_cb, because devm_kcalloc not only ensure to free the
memory when the dev is deallocted, but also allocate the memory
from it's device memory node.
Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/sch_fq.c')
0 files changed, 0 insertions, 0 deletions