RDMA/hns: Remove some redundant variables related to capabilities
authorWeihang Li <liweihang@huawei.com>
Sat, 11 Jan 2020 10:32:39 +0000 (18:32 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 15 Jan 2020 18:11:34 +0000 (14:11 -0400)
commita91e093cad37c60dc16ca382ed6f869c4c99fb77
treebfbb2bf90a80742def15866ca1cb1b6b157d6f61
parent5c55cfd6a553d008fcd54e4a4e3fed1340ee5090
RDMA/hns: Remove some redundant variables related to capabilities

In struct hns_roce_caps, max_srq_sg and max_srqwqes is unused, and
max_srqs has the same effect with num_srqs. So remove them from this
structrue.

Link: https://lore.kernel.org/r/1578738761-3176-2-git-send-email-liweihang@huawei.com
Signed-off-by: Weihang Li <liweihang@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_device.h
drivers/infiniband/hw/hns/hns_roce_hw_v2.c
drivers/infiniband/hw/hns/hns_roce_main.c