aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/hns/hns_roce_hw_v2.c
diff options
context:
space:
mode:
authorXinhao Liu <liuxinhao@huawei.com>2021-11-19 22:02:05 +0800
committerJason Gunthorpe <jgg@nvidia.com>2021-11-19 14:13:44 -0400
commit6cb6a6cbcd7ff45042e6f35a5ee85ba5f83d120b (patch)
tree8405d0a4131ecb2fe60a6b1d1b882d75b87a309a /drivers/infiniband/hw/hns/hns_roce_hw_v2.c
parentRDMA/hns: Correct the type of variables participating in the shift operation (diff)
downloadlinux-dev-6cb6a6cbcd7ff45042e6f35a5ee85ba5f83d120b.tar.xz
linux-dev-6cb6a6cbcd7ff45042e6f35a5ee85ba5f83d120b.zip
RDMA/hns: Correctly initialize the members of Array[][]
Each member of Array[][] should be initialized on a separate line. Link: https://lore.kernel.org/r/20211119140208.40416-7-liangwenpeng@huawei.com Signed-off-by: Xinhao Liu <liuxinhao@huawei.com> Signed-off-by: Wenpeng Liang <liangwenpeng@huawei.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to '')
-rw-r--r--drivers/infiniband/hw/hns/hns_roce_hw_v2.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/hns/hns_roce_hw_v2.c b/drivers/infiniband/hw/hns/hns_roce_hw_v2.c
index ae4f6fa8ad71..82a53c20d5f2 100644
--- a/drivers/infiniband/hw/hns/hns_roce_hw_v2.c
+++ b/drivers/infiniband/hw/hns/hns_roce_hw_v2.c
@@ -4752,7 +4752,8 @@ static bool check_qp_state(enum ib_qp_state cur_state,
[IB_QPS_ERR] = true },
[IB_QPS_SQD] = {},
[IB_QPS_SQE] = {},
- [IB_QPS_ERR] = { [IB_QPS_RESET] = true, [IB_QPS_ERR] = true }
+ [IB_QPS_ERR] = { [IB_QPS_RESET] = true,
+ [IB_QPS_ERR] = true }
};
return sm[cur_state][new_state];