From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37944) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VAMFy-0006c9-F1 for qemu-devel@nongnu.org; Fri, 16 Aug 2013 11:48:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VAMFs-0004JV-BK for qemu-devel@nongnu.org; Fri, 16 Aug 2013 11:48:06 -0400 Received: from mx1.redhat.com ([209.132.183.28]:31516) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VAMFs-0004JN-3W for qemu-devel@nongnu.org; Fri, 16 Aug 2013 11:48:00 -0400 From: Stefan Hajnoczi Date: Fri, 16 Aug 2013 17:47:20 +0200 Message-Id: <1376668044-25116-15-git-send-email-stefanha@redhat.com> In-Reply-To: <1376668044-25116-1-git-send-email-stefanha@redhat.com> References: <1376668044-25116-1-git-send-email-stefanha@redhat.com> Subject: [Qemu-devel] [PULL 14/18] block/ssh: drop return_true() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Anthony Liguori , Stefan Hajnoczi .io_flush() is no longer called so drop return_true(). Signed-off-by: Stefan Hajnoczi --- block/ssh.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/block/ssh.c b/block/ssh.c index d7e7bf8..e149da9 100644 --- a/block/ssh.c +++ b/block/ssh.c @@ -740,14 +740,6 @@ static void restart_coroutine(void *opaque) qemu_coroutine_enter(co, NULL); } -/* Always true because when we have called set_fd_handler there is - * always a request being processed. - */ -static int return_true(void *opaque) -{ - return 1; -} - static coroutine_fn void set_fd_handler(BDRVSSHState *s) { int r; @@ -766,7 +758,7 @@ static coroutine_fn void set_fd_handler(BDRVSSHState *s) DPRINTF("s->sock=%d rd_handler=%p wr_handler=%p", s->sock, rd_handler, wr_handler); - qemu_aio_set_fd_handler(s->sock, rd_handler, wr_handler, return_true, co); + qemu_aio_set_fd_handler(s->sock, rd_handler, wr_handler, NULL, co); } static coroutine_fn void clear_fd_handler(BDRVSSHState *s) -- 1.8.3.1