diff mbox

[1/3] No need anymoe for bdrv_set_read_only

Message ID 1264077641-17902-4-git-send-email-nsprei@redhat.com
State New
Headers show

Commit Message

Naphtali Sprei Jan. 21, 2010, 12:40 p.m. UTC
Signed-off-by: Naphtali Sprei <nsprei@redhat.com>
---
 block.c |    7 -------
 block.h |    1 -
 2 files changed, 0 insertions(+), 8 deletions(-)

Comments

Anthony Liguori Jan. 26, 2010, 10:05 p.m. UTC | #1
On 01/21/2010 06:40 AM, Naphtali Sprei wrote:
> Signed-off-by: Naphtali Sprei<nsprei@redhat.com>
>    

Applied all.  Thanks.

Regards,

Anthony Liguori

> ---
>   block.c |    7 -------
>   block.h |    1 -
>   2 files changed, 0 insertions(+), 8 deletions(-)
>
> diff --git a/block.c b/block.c
> index 73c26ec..8378c18 100644
> --- a/block.c
> +++ b/block.c
> @@ -1009,13 +1009,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 fd4e8dd..1aec453 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);
>
diff mbox

Patch

diff --git a/block.c b/block.c
index 73c26ec..8378c18 100644
--- a/block.c
+++ b/block.c
@@ -1009,13 +1009,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 fd4e8dd..1aec453 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);