]> 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)
commit11b48995605443257d312494c93a45dcc2776b85
tree05ab68f2d7a54bb360b1750d2b5df7261ff74dc7
parentcb0b8db07d4794cf9bdb074fc31d70cab6d6bcaa
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