diff options
author | Alex Bligh <alex@alex.org.uk> | 2013-08-22 19:59:16 +0100 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2013-08-22 22:03:47 +0200 |
commit | 91c68f143d6e707c5783b162292dce38ae358c19 (patch) | |
tree | 6415a9f743c918718329c4f36c45ce4e16f34c6e /tests | |
parent | b4049b74b97f30fe944c63b5f158ec9e87bd2593 (diff) | |
download | qemu-91c68f143d6e707c5783b162292dce38ae358c19.tar.gz qemu-91c68f143d6e707c5783b162292dce38ae358c19.tar.bz2 qemu-91c68f143d6e707c5783b162292dce38ae358c19.zip |
aio / timers: remove dummy_io_handler_flush from tests/test-aio.c
Remove dummy_io_handler_flush from tests/test-aio.c as it does
nothing now.
Signed-off-by: Alex Bligh <alex@alex.org.uk>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-aio.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/tests/test-aio.c b/tests/test-aio.c index 3ad22941d9..07a1f61f87 100644 --- a/tests/test-aio.c +++ b/tests/test-aio.c @@ -77,11 +77,6 @@ static void dummy_io_handler_read(void *opaque) { } -static int dummy_io_handler_flush(void *opaque) -{ - return 1; -} - static void bh_delete_cb(void *opaque) { BHTestData *data = opaque; @@ -382,7 +377,7 @@ static void test_timer_schedule(void) */ g_assert(!pipe2(pipefd, O_NONBLOCK)); aio_set_fd_handler(ctx, pipefd[0], - dummy_io_handler_read, NULL, dummy_io_handler_flush); + dummy_io_handler_read, NULL, NULL); aio_poll(ctx, false); aio_timer_init(ctx, &data.timer, data.clock_type, @@ -723,7 +718,7 @@ static void test_source_timer_schedule(void) */ g_assert(!pipe2(pipefd, O_NONBLOCK)); aio_set_fd_handler(ctx, pipefd[0], - dummy_io_handler_read, NULL, dummy_io_handler_flush); + dummy_io_handler_read, NULL, NULL); do {} while (g_main_context_iteration(NULL, false)); aio_timer_init(ctx, &data.timer, data.clock_type, |