Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <colin.i.king@gmail.com>
Message-Id: <20221024133756.2158497-1-colin.i.king@gmail.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>

authored by

Colin Ian King and committed by
Michael S. Tsirkin
a9f0a19f b9d978a8

-2
-2
drivers/vdpa/mlx5/core/mr.c
··· 311 311 u64 st; 312 312 u64 sz; 313 313 int err; 314 - int i = 0; 315 314 316 315 st = start; 317 316 while (size) { ··· 335 336 mr->num_directs++; 336 337 mr->num_klms++; 337 338 st += sz; 338 - i++; 339 339 } 340 340 list_splice_tail(&tmp, &mr->head); 341 341 return 0;