diff options
author | Markus Armbruster <armbru@redhat.com> | 2011-07-20 18:23:41 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2011-08-01 12:10:28 +0200 |
commit | dbb938a2fec9f72910d44a32b58162c221396728 (patch) | |
tree | 2e7084c75e2a1cbd4a512d80db5638ab80b8bcf7 /block/raw.c | |
parent | bc3c113980cf72474220d224fc39bfdacde9c086 (diff) | |
download | qemu-dbb938a2fec9f72910d44a32b58162c221396728.tar.gz qemu-dbb938a2fec9f72910d44a32b58162c221396728.tar.bz2 qemu-dbb938a2fec9f72910d44a32b58162c221396728.zip |
block: Make BlockDriver method bdrv_set_locked() return void
The only caller is bdrv_set_locked(), and it ignores the value.
Callees always return 0, except for FreeBSD's cdrom_set_locked(),
which returns -ENOTSUP when the device is in a terminally wedged
state.
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 | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/block/raw.c b/block/raw.c index b0f72d6a62..1398a9c221 100644 --- a/block/raw.c +++ b/block/raw.c @@ -80,10 +80,9 @@ static int raw_eject(BlockDriverState *bs, int eject_flag) return bdrv_eject(bs->file, eject_flag); } -static int raw_set_locked(BlockDriverState *bs, int locked) +static void raw_set_locked(BlockDriverState *bs, int locked) { bdrv_set_locked(bs->file, locked); - return 0; } static int raw_ioctl(BlockDriverState *bs, unsigned long int req, void *buf) |