RDMA/hns: Delete unnecessary memset when allocating VF resource
authorLang Cheng <chenglang@huawei.com>
Tue, 28 Jul 2020 10:42:19 +0000 (18:42 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 30 Jul 2020 18:11:49 +0000 (15:11 -0300)
commita5531e9b70ffa086cfad553be189baf4c2673220
treea7680e41e55c1d91776d04cb19be7949712b8a89
parenteaaa98dedf280afea15ad3552460bf142fecb9af
RDMA/hns: Delete unnecessary memset when allocating VF resource

The hns_roce_cmq_setup_basic_desc() can clear the whole desc, so removes
these redundant memset operations.

Link: https://lore.kernel.org/r/1595932941-40613-6-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_hw_v2.c