test/iopoll: coding style fixups
@@ -242,6 +242,8 @@ static int test_io_uring_submit_enters(const char *file)
{
struct io_uring ring;
int fd, i, ret, ring_flags, open_flags;
+ unsigned head;
+ struct io_uring_cqe *cqe;
ring_flags = IORING_SETUP_IOPOLL;
ret = io_uring_queue_init(64, &ring, ring_flags);
@@ -279,8 +281,6 @@ static int test_io_uring_submit_enters(const char *file)
goto err;
}
- unsigned head;
- struct io_uring_cqe *cqe;
io_uring_for_each_cqe(&ring, head, cqe) {
/* runs after test_io so should not have happened */
if (cqe->res == -EOPNOTSUPP) {
