mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-04 08:17:46 +00:00
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>
This commit is contained in:
parent
d147583ec8
commit
6cb6a6cbcd
1 changed files with 2 additions and 1 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Reference in a new issue