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 | 822e1cd17e8fa3ae98d0481c20f042316ace3fbc (patch) | |
| tree | 7105535f346629f7d0ec761fee06a1221f037dd5 /block_int.h | |
| parent | 7bf37feddcfa527304cfdc02bd2db8912ee9bf8c (diff) | |
| download | focaccia-qemu-822e1cd17e8fa3ae98d0481c20f042316ace3fbc.tar.gz focaccia-qemu-822e1cd17e8fa3ae98d0481c20f042316ace3fbc.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 '')
| -rw-r--r-- | block_int.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block_int.h b/block_int.h index e0b638c116..efefbee289 100644 --- a/block_int.h +++ b/block_int.h @@ -112,7 +112,7 @@ struct BlockDriver { /* removable device specific */ int (*bdrv_is_inserted)(BlockDriverState *bs); int (*bdrv_media_changed)(BlockDriverState *bs); - int (*bdrv_eject)(BlockDriverState *bs, int eject_flag); + void (*bdrv_eject)(BlockDriverState *bs, int eject_flag); void (*bdrv_set_locked)(BlockDriverState *bs, int locked); /* to control generic scsi devices */ |