diff options
author | Markus Armbruster <armbru@redhat.com> | 2011-07-20 18:23:42 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2011-08-01 12:10:28 +0200 |
commit | 632183d38ed844f741423180b20499192179803c (patch) | |
tree | 7105535f346629f7d0ec761fee06a1221f037dd5 /block/raw.c | |
parent | dbb938a2fec9f72910d44a32b58162c221396728 (diff) | |
download | qemu-632183d38ed844f741423180b20499192179803c.tar.gz qemu-632183d38ed844f741423180b20499192179803c.tar.bz2 qemu-632183d38ed844f741423180b20499192179803c.zip |
block: Make BlockDriver method bdrv_eject() return void
Callees always return 0, except for FreeBSD's cdrom_eject(), which
returns -ENOTSUP when the device is in a terminally wedged state.
The only caller is bdrv_eject(), and it maps -ENOTSUP to 0 since
commit 4be9762a.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block/raw.c')
-rw-r--r-- | block/raw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/block/raw.c b/block/raw.c index 1398a9c221..cb6203eeca 100644 --- a/block/raw.c +++ b/block/raw.c @@ -75,9 +75,9 @@ static int raw_is_inserted(BlockDriverState *bs) return bdrv_is_inserted(bs->file); } -static int raw_eject(BlockDriverState *bs, int eject_flag) +static void raw_eject(BlockDriverState *bs, int eject_flag) { - return bdrv_eject(bs->file, eject_flag); + bdrv_eject(bs->file, eject_flag); } static void raw_set_locked(BlockDriverState *bs, int locked) |