]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/hns: Simplify doorbell initialization code
authorLang Cheng <chenglang@huawei.com>
Tue, 5 Nov 2019 11:07:59 +0000 (19:07 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 8 Nov 2019 20:37:54 +0000 (16:37 -0400)
commit2e4c6cb8e2bfd0a2e68fa9a4fbc93fd9765d7391
tree8e1d8fccafd207b6677ac1a31c3be975021b0393
parent16a718957f442df29224ee0bc3fbf589ac1e308f
RDMA/hns: Simplify doorbell initialization code

If a variable needs to be set to 0 before use, it can be directly
initialized to 0.

Link: https://lore.kernel.org/r/1572952082-6681-7-git-send-email-liweihang@hisilicon.com
Signed-off-by: Lang Cheng <chenglang@huawei.com>
Signed-off-by: Weihang Li <liweihang@hisilicon.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c