RDMA/hns: Correctly initialize the members of Array[][]
authorXinhao Liu <liuxinhao@huawei.com>
Fri, 19 Nov 2021 14:02:05 +0000 (22:02 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 19 Nov 2021 18:13:44 +0000 (14:13 -0400)
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>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c

index ae4f6fa..82a53c2 100644 (file)
@@ -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];