Skip to content

Commit

Permalink
hw/ide: Remove superfluous return statements
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
huth authored and Michael Tokarev committed Jan 11, 2016
1 parent 529490e commit 4e6f7cf
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion hw/ide/atapi.c
Expand Up @@ -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)
Expand Down
2 changes: 0 additions & 2 deletions hw/ide/macio.c
Expand Up @@ -292,8 +292,6 @@ static void pmac_ide_atapi_transfer_cb(void *opaque, int ret)
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)
Expand Down

0 comments on commit 4e6f7cf

Please sign in to comment.