OSDN Git Service

RDMA/hns: Remove unused variables and definitions
authorLang Cheng <chenglang@huawei.com>
Tue, 29 Sep 2020 09:32:14 +0000 (17:32 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 29 Sep 2020 17:01:20 +0000 (14:01 -0300)
commitcf4c0fb00d5a93cefedadb6a973416376d3321dc
tree137d8259bb4aa0fb113e00fef342b0e92e161352
parentd4f40a1fb9838edef9c343ffe9a5009c41f20f6d
RDMA/hns: Remove unused variables and definitions

Some code was removed but the variables were still there, and some
parameters have been changed to be queried from firmware. So the
definitions of them are no longer needed.

Fixes: 2a3d923f8730 ("RDMA/hns: Replace magic numbers with #defines")
Fixes: 82e620d9c3a0 ("RDMA/hns: Modify the data structure of hns_roce_av")
Fixes: 82547469782a ("IB/hns: Implement the add_gid/del_gid and optimize the GIDs management")
Fixes: 21b97f538765 ("RDMA/hns: Fixup qp release bug")
Link: https://lore.kernel.org/r/1601371934-40003-1-git-send-email-liweihang@huawei.com
Signed-off-by: Lang Cheng <chenglang@huawei.com>
Signed-off-by: Weihang Li <liweihang@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/hns/hns_roce_device.h
drivers/infiniband/hw/hns/hns_roce_qp.c