]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/hns: Simplify the status judgment code of hns_roce_v1_m_qp()
authorLang Cheng <chenglang@huawei.com>
Wed, 15 Apr 2020 08:14:35 +0000 (16:14 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 24 Apr 2020 13:19:11 +0000 (10:19 -0300)
commitc910a5ffd014bcef78d1b494ec86eea3b0fb9c73
tree05ab68f2d7a54bb360b1750d2b5df7261ff74dc7
parent1f38bda1b0b69f70738b82b8b8393a29a56d427c
RDMA/hns: Simplify the status judgment code of hns_roce_v1_m_qp()

Use status table to reduce cyclomatic complexity.

Link: https://lore.kernel.org/r/1586938475-37049-7-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