From 37226ad946597126f5bce36f75f818b12fe4b5b8 Mon Sep 17 00:00:00 2001 From: Naphtali Sprei Date: Thu, 21 Jan 2010 14:40:37 +0200 Subject: [PATCH] No need anymoe for bdrv_set_read_only Signed-off-by: Naphtali Sprei Signed-off-by: Anthony Liguori --- block.c | 7 ------- block.h | 1 - 2 files changed, 8 deletions(-) diff --git a/block.c b/block.c index 575c5f85c2..3721d93954 100644 --- 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 fd4e8dde58..1aec4531ba 100644 --- 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); -- 2.11.4.GIT