From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42072) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VCa6a-0006WR-Iv for qemu-devel@nongnu.org; Thu, 22 Aug 2013 14:59:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VCa6Z-0002VX-7y for qemu-devel@nongnu.org; Thu, 22 Aug 2013 14:59:36 -0400 Received: from mail.avalus.com ([2001:41c8:10:1dd::10]:57642) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VCa6Z-0002Ty-1N for qemu-devel@nongnu.org; Thu, 22 Aug 2013 14:59:35 -0400 From: Alex Bligh Date: Thu, 22 Aug 2013 19:59:16 +0100 Message-Id: <1377197956-7859-1-git-send-email-alex@alex.org.uk> Subject: [Qemu-devel] [PATCH] aio / timers: remove dummy_io_handler_flush from tests/test-aio.c List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf , Anthony Liguori , Alex Bligh , Jan Kiszka , liu ping fan , Stefan Hajnoczi , Paolo Bonzini , MORITA Kazutaka , rth@twiddle.net Remove dummy_io_handler_flush from tests/test-aio.c as it does nothing now. Signed-off-by: Alex Bligh --- tests/test-aio.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/tests/test-aio.c b/tests/test-aio.c index 3ad2294..07a1f61 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, -- 1.7.9.5