mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
block: remove unused bdrv_media_changed
This function is not used anywhere, so remove it. Markus Armbruster adds: The i82078 floppy device model used to call bdrv_media_changed() to implement its media change bit when backed by a host floppy. This went away in21fcf36
"fdc: simplify media change handling". Probably broke host floppy media change. Host floppy pass-through was dropped in commitf709623
. bdrv_media_changed() has never been used for anything else. Remove it. (Source is Message-ID: <87y3ruaypm.fsf@dusky.pond.sub.org>) Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Manos Pitsidianakis <el13635@mail.ntua.gr> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
5a612c009e
commit
f024aee867
4 changed files with 0 additions and 22 deletions
14
block.c
14
block.c
|
@ -4191,20 +4191,6 @@ bool bdrv_is_inserted(BlockDriverState *bs)
|
|||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return whether the media changed since the last call to this
|
||||
* function, or -ENOTSUP if we don't know. Most drivers don't know.
|
||||
*/
|
||||
int bdrv_media_changed(BlockDriverState *bs)
|
||||
{
|
||||
BlockDriver *drv = bs->drv;
|
||||
|
||||
if (drv && drv->bdrv_media_changed) {
|
||||
return drv->bdrv_media_changed(bs);
|
||||
}
|
||||
return -ENOTSUP;
|
||||
}
|
||||
|
||||
/**
|
||||
* If eject_flag is TRUE, eject the media. Otherwise, close the tray
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue