Commit a9f0a19f authored by Colin Ian King's avatar Colin Ian King Committed by Michael S. Tsirkin
Browse files

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: default avatarColin Ian King <colin.i.king@gmail.com>
Message-Id: <20221024133756.2158497-1-colin.i.king@gmail.com>
Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
parent b9d978a8
Loading
Loading
Loading
Loading
+0 −2
Original line number Original line Diff line number Diff line
@@ -311,7 +311,6 @@ static int add_direct_chain(struct mlx5_vdpa_dev *mvdev, u64 start, u64 size, u8
	u64 st;
	u64 st;
	u64 sz;
	u64 sz;
	int err;
	int err;
	int i = 0;


	st = start;
	st = start;
	while (size) {
	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_directs++;
		mr->num_klms++;
		mr->num_klms++;
		st += sz;
		st += sz;
		i++;
	}
	}
	list_splice_tail(&tmp, &mr->head);
	list_splice_tail(&tmp, &mr->head);
	return 0;
	return 0;