diff options
author | Zheng Yongjun <zhengyongjun3@huawei.com> | 2020-12-16 16:02:19 +0800 |
---|---|---|
committer | Jason Gunthorpe <jgg@nvidia.com> | 2021-01-07 16:03:08 -0400 |
commit | 0ccccb045c870a34730319cb1fb9cad8c8d53f2b (patch) | |
tree | 7b3e87fe43bf0622ea193ea6072c06a4052bb2d7 /drivers/infiniband/sw/rxe | |
parent | RDMA/hfi1: remove h from printk format specifier (diff) | |
download | linux-dev-0ccccb045c870a34730319cb1fb9cad8c8d53f2b.tar.xz linux-dev-0ccccb045c870a34730319cb1fb9cad8c8d53f2b.zip |
RDMA/cma: Delete useless kfree code
The parameter of kfree function is NULL, so kfree code is useless, delete
it. Therefore, goto expression is no longer needed, so simplify
it. cma_dev_group is always pre-zero'd before reaching make_cma_ports, so
the NULL set to cma_dev_group->ports is unneeded too.
Link: https://lore.kernel.org/r/20201216080219.18184-1-zhengyongjun3@huawei.com
Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'drivers/infiniband/sw/rxe')
0 files changed, 0 insertions, 0 deletions