commit | a97bf49f824e357f1cc5d292e247d05271d32afe | [log] [tgz] |
---|---|---|
author | Lang Cheng <chenglang@huawei.com> | Wed Apr 15 16:14:35 2020 +0800 |
committer | Jason Gunthorpe <jgg@mellanox.com> | Fri Apr 24 10:19:11 2020 -0300 |
tree | 05ab68f2d7a54bb360b1750d2b5df7261ff74dc7 | |
parent | 357f342946860b323d1981cc42370516dbb209d2 [diff] |
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>