]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/qemu-xen.git/commitdiff
hw/ide: Remove superfluous return statements
authorThomas Huth <thuth@redhat.com>
Tue, 10 Nov 2015 20:16:08 +0000 (21:16 +0100)
committerMichael Tokarev <mjt@tls.msk.ru>
Mon, 11 Jan 2016 08:39:28 +0000 (11:39 +0300)
The "return;" statements at the end of functions do not make
much sense, so let's remove them.

Cc: qemu-block@nongnu.org
Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/ide/atapi.c
hw/ide/macio.c

index 65f8dd457bb83757d5b64356a21ad0fce2168d22..272ab90c7aa166f2c083da7528a5c9f80d7490fc 100644 (file)
@@ -824,7 +824,6 @@ static void cmd_inquiry(IDEState *s, uint8_t *buf)
  out:
     buf[size_idx] = idx - preamble_len;
     ide_atapi_cmd_reply(s, idx, max_len);
-    return;
 }
 
 static void cmd_get_configuration(IDEState *s, uint8_t *buf)
index 3ee962f830186cc555f8d1bdcb273fe223976e5b..97712619cdc07a509b3dd694bb6b362f169b21e8 100644 (file)
@@ -292,8 +292,6 @@ done:
         block_acct_done(blk_get_stats(s->blk), &s->acct);
     }
     io->dma_end(opaque);
-
-    return;
 }
 
 static void pmac_ide_transfer_cb(void *opaque, int ret)