diff options
author | Xinhao Liu <liuxinhao@huawei.com> | 2021-11-19 22:02:05 +0800 |
---|---|---|
committer | Jason Gunthorpe <jgg@nvidia.com> | 2021-11-19 14:13:44 -0400 |
commit | 6cb6a6cbcd7ff45042e6f35a5ee85ba5f83d120b (patch) | |
tree | 8405d0a4131ecb2fe60a6b1d1b882d75b87a309a /drivers | |
parent | d147583ec8d009e456d794a7e33fe95e920a6535 (diff) |
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 'drivers')
-rw-r--r-- | drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 3 |
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]; |