Skip to content

Commit a9f0a19

Browse files
ColinIanKingmstsirkin
authored andcommitted
RDMA/mlx5: remove variable i
Variable i is just being incremented and it's never used anywhere else. The variable and the increment are redundant so remove it. Signed-off-by: Colin Ian King <[email protected]> Message-Id: <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]>
1 parent b9d978a commit a9f0a19

File tree

1 file changed

+0
-2
lines changed
  • drivers/vdpa/mlx5/core

1 file changed

+0
-2
lines changed

drivers/vdpa/mlx5/core/mr.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,6 @@ static int add_direct_chain(struct mlx5_vdpa_dev *mvdev, u64 start, u64 size, u8
311311
u64 st;
312312
u64 sz;
313313
int err;
314-
int i = 0;
315314

316315
st = start;
317316
while (size) {
@@ -336,7 +335,6 @@ static int add_direct_chain(struct mlx5_vdpa_dev *mvdev, u64 start, u64 size, u8
336335
mr->num_directs++;
337336
mr->num_klms++;
338337
st += sz;
339-
i++;
340338
}
341339
list_splice_tail(&tmp, &mr->head);
342340
return 0;

0 commit comments

Comments
 (0)