]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/hns: Init the variable at the suitable place
authorHaoyue Xu <xuhaoyue1@hisilicon.com>
Sat, 9 Apr 2022 08:32:54 +0000 (16:32 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 11 Apr 2022 14:00:35 +0000 (11:00 -0300)
commit997b86308e0b17589dc4a163b4c9b7061696e43f
tree51ec4a55ace04f473f1600330706e7867a63e727
parent4c1d3d898f5a28cf441d52b2b679f611cc4ed99a
RDMA/hns: Init the variable at the suitable place

Assigning a value to ret in the init statement of a for-loop makes the
code less readable.

Link: https://lore.kernel.org/r/20220409083254.9696-6-liangwenpeng@huawei.com
Signed-off-by: Haoyue Xu <xuhaoyue1@hisilicon.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