diff options
author | Markus Armbruster <armbru@redhat.com> | 2011-05-16 15:04:57 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2011-05-19 10:26:23 +0200 |
commit | 8d278467ff698de351a136e71f352e611e728579 (patch) | |
tree | 156fa95e2f010f77cbb0e1a4f533fa0d97260a8b /block.c | |
parent | 95b5edcd92d64c7b8fe9f2e3e0725fdf84be0dfa (diff) | |
download | qemu-8d278467ff698de351a136e71f352e611e728579.tar.gz qemu-8d278467ff698de351a136e71f352e611e728579.tar.bz2 qemu-8d278467ff698de351a136e71f352e611e728579.zip |
block: Remove type hint, it's guest matter, doesn't belong here
No users of bdrv_get_type_hint() left. bdrv_set_type_hint() can make
the media removable by side effect. Make that explicit.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block.c')
-rw-r--r-- | block.c | 12 |
1 files changed, 0 insertions, 12 deletions
@@ -1305,13 +1305,6 @@ void bdrv_set_geometry_hint(BlockDriverState *bs, bs->secs = secs; } -void bdrv_set_type_hint(BlockDriverState *bs, int type) -{ - bs->type = type; - bs->removable = ((type == BDRV_TYPE_CDROM || - type == BDRV_TYPE_FLOPPY)); -} - void bdrv_set_translation_hint(BlockDriverState *bs, int translation) { bs->translation = translation; @@ -1428,11 +1421,6 @@ void bdrv_get_floppy_geometry_hint(BlockDriverState *bs, int *nb_heads, } } -int bdrv_get_type_hint(BlockDriverState *bs) -{ - return bs->type; -} - int bdrv_get_translation_hint(BlockDriverState *bs) { return bs->translation; |