]> git.proxmox.com Git - qemu.git/commitdiff
No need anymoe for bdrv_set_read_only
authorNaphtali Sprei <nsprei@redhat.com>
Thu, 21 Jan 2010 12:40:37 +0000 (14:40 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 26 Jan 2010 21:42:01 +0000 (15:42 -0600)
Signed-off-by: Naphtali Sprei <nsprei@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
block.c
block.h

diff --git a/block.c b/block.c
index 575c5f85c2f04744d20c81a728a093c1b59c1d38..3721d939541cab02ade18e77774cd5d592b0d143 100644 (file)
--- a/block.c
+++ b/block.c
@@ -1011,13 +1011,6 @@ int bdrv_is_read_only(BlockDriverState *bs)
     return bs->read_only;
 }
 
-int bdrv_set_read_only(BlockDriverState *bs, int read_only)
-{
-    int ret = bs->read_only;
-    bs->read_only = read_only;
-    return ret;
-}
-
 int bdrv_is_sg(BlockDriverState *bs)
 {
     return bs->sg;
diff --git a/block.h b/block.h
index fd4e8dde585dcce6cf5d898ebe0c8cdd7f3f6bef..1aec4531ba791f6d350d380948c4d5f474516af4 100644 (file)
--- a/block.h
+++ b/block.h
@@ -147,7 +147,6 @@ int bdrv_get_type_hint(BlockDriverState *bs);
 int bdrv_get_translation_hint(BlockDriverState *bs);
 int bdrv_is_removable(BlockDriverState *bs);
 int bdrv_is_read_only(BlockDriverState *bs);
-int bdrv_set_read_only(BlockDriverState *bs, int read_only);
 int bdrv_is_sg(BlockDriverState *bs);
 int bdrv_enable_write_cache(BlockDriverState *bs);
 int bdrv_is_inserted(BlockDriverState *bs);