block/ssh: drop return_true()
authorStefan Hajnoczi <stefanha@redhat.com>
Tue, 16 Apr 2013 11:12:28 +0000 (13:12 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Mon, 19 Aug 2013 13:52:19 +0000 (15:52 +0200)
.io_flush() is no longer called so drop return_true().

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/ssh.c

index d7e7bf8dd222b596ee24afa9db09164554b6a722..e149da9c14430d3b3cfbdc195ce59659d152736a 100644 (file)
@@ -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)