Skip to content

Commit e930b4d

Browse files
Colin Ian Kingdledford
authored andcommitted
RDMA/hns: remove redundant assignment to variable j
Variable j is being assigned to loop_j and then later being assigned to a new value in for loops. The first initialization is therefore redundant and can be removed. Cleans up clang warning: warning: Value stored to 'j' is never read Signed-off-by: Colin Ian King <[email protected]> Signed-off-by: Doug Ledford <[email protected]>
1 parent 281d0cc commit e930b4d

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/infiniband/hw/hns/hns_roce_mr.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,6 @@ static void hns_roce_loop_free(struct hns_roce_dev *hr_dev,
272272
mhop_num = hr_dev->caps.pbl_hop_num;
273273

274274
i = loop_i;
275-
j = loop_j;
276275
if (mhop_num == 3 && err_loop_index == 2) {
277276
for (; i >= 0; i--) {
278277
dma_free_coherent(dev, pbl_bt_sz, mr->pbl_bt_l1[i],

0 commit comments

Comments
 (0)