Skip to content

Commit 3ca5acc

Browse files
committed
test/recv-mshot-fair: remove dead 'i' variable
Fixes: 3e68abb ("test/recv-mshot-fair: test fairness and limits between streams") Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 3e68abb commit 3ca5acc

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

test/recv-mshot-fair.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ static int do_recv(struct io_uring *ring)
194194
struct iter iter = { .last_res = -4096, };
195195
struct io_uring_cqe *cqe;
196196
struct recv_data *rd;
197-
int ret = 1, i = 0;
197+
int ret = 1;
198198
int done = 0;
199199

200200
last_rd = NULL;
@@ -223,7 +223,6 @@ static int do_recv(struct io_uring *ring)
223223
done++;
224224
continue;
225225
}
226-
i++;
227226
io_uring_cqe_seen(ring, cqe);
228227
if (!(cqe->flags & IORING_CQE_F_MORE) && rd->recv_bytes)
229228
arm_recv(ring, rd);

0 commit comments

Comments
 (0)