RDMA/hns: Delete redundant judgment when preparing descriptors
authorXinhao Liu <liuxinhao5@hisilicon.com>
Fri, 5 Feb 2021 09:39:34 +0000 (17:39 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 9 Feb 2021 00:25:26 +0000 (20:25 -0400)
commita5887d62072e09a9d3b01549ac5d555bbeb9be3d
tree999707d156fae6fd068ccf181dabae60f9a19753
parentcd0a4baf36dafb0a6d1a57be712ab6263ef169bc
RDMA/hns: Delete redundant judgment when preparing descriptors

There is no need to use a for loop to assign values for an array of cmd
descriptors which has only two elements.

Link: https://lore.kernel.org/r/1612517974-31867-13-git-send-email-liweihang@huawei.com
Signed-off-by: Xinhao Liu <liuxinhao5@hisilicon.com>
Signed-off-by: Weihang Li <liweihang@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c