RDMA/hns: Initialize all fields of doorbells to zero
authorLang Cheng <chenglang@huawei.com>
Thu, 20 Feb 2020 01:34:31 +0000 (09:34 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 20 Feb 2020 17:22:02 +0000 (13:22 -0400)
commit52c5e9e7497b728b53a84cbd5873c4b707d10d55
tree3fcb25d5c2e772cca13f6f500a06fbf3a779066e
parent8d8d2b76ac3545cf6c0e9c6aa61700db98d2496a
RDMA/hns: Initialize all fields of doorbells to zero

Prevent uninitialized fields when new fields are added, and make code look
simpler.

Link: https://lore.kernel.org/r/1582162471-50361-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@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_hw_v1.c
drivers/infiniband/hw/hns/hns_roce_hw_v2.c