test/submit-reuse: Fix -Wunused-but-set-variable warning from clang-15

clang-15 correctly warns:
```
  submit-reuse.c:29:6: error: variable 'i' set but not used \
  [-Werror,-Wunused-but-set-variable]
          int i = 0;
            ^
  1 error generated.
  make[1]: *** [Makefile:210: submit-reuse.t] Error 1
```
Remove the i variable here, it's not used.

Fixes: ad543701a8 ("Add test case for -EFAULT triggered by iov reuse")
Signed-off-by: Ammar Faizi <ammarfaizi2@gnuweeb.org>
This commit is contained in:
Ammar Faizi
2022-04-15 04:21:23 +07:00
parent 7ec591c528
commit 2884ff9c19
-2
View File
@@ -26,13 +26,11 @@ struct thread_data {
static void *flusher(void *__data)
{
struct thread_data *data = __data;
int i = 0;
while (!data->do_exit) {
posix_fadvise(data->fd1, 0, FILE_SIZE, POSIX_FADV_DONTNEED);
posix_fadvise(data->fd2, 0, FILE_SIZE, POSIX_FADV_DONTNEED);
usleep(10);
i++;
}
return NULL;