RDMA/mlx5: remove variable i
Subsystems (3)
PATCH 1/1 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]>
--- drivers/vdpa/mlx5/core/mr.c | 2 -- 1 file changed, 2 deletions(-)
drivers/vdpa/mlx5/core/mr.c +0 -2
@@ -311,7 +311,6 @@ static int add_direct_chain(struct mlx5_vdpa_dev *mvdev, u64 start, u64 size, u8u64 st;u64 sz;int err; -int i =0 ; st = start;while (size) {
@@ -336,7 +335,6 @@ static int add_direct_chain(struct mlx5_vdpa_dev *mvdev, u64 start, u64 size, u8 mr->num_directs++; mr->num_klms++; st += sz; - i++; }list_splice_tail (&tmp, &mr->head);return 0 ;
Signature · 1 line
2.37.3