diff mbox

[4/4] block: Drop bdrv_find

Message ID 1425296209-1476-5-git-send-email-famz@redhat.com
State New
Headers show

Commit Message

Fam Zheng March 2, 2015, 11:36 a.m. UTC
All callers are converted, so drop it.

Signed-off-by: Fam Zheng <famz@redhat.com>
---
 block.c               | 9 ---------
 include/block/block.h | 1 -
 2 files changed, 10 deletions(-)

Comments

Max Reitz March 2, 2015, 3:51 p.m. UTC | #1
On 2015-03-02 at 06:36, Fam Zheng wrote:
> All callers are converted, so drop it.
>
> Signed-off-by: Fam Zheng <famz@redhat.com>
> ---
>   block.c               | 9 ---------
>   include/block/block.h | 1 -
>   2 files changed, 10 deletions(-)

Reviewed-by: Max Reitz <mreitz@redhat.com>
diff mbox

Patch

diff --git a/block.c b/block.c
index 9b707e3..742f82c 100644
--- a/block.c
+++ b/block.c
@@ -3780,15 +3780,6 @@  void bdrv_iterate_format(void (*it)(void *opaque, const char *name),
     g_free(formats);
 }
 
-/* This function is to find block backend bs */
-/* TODO convert callers to blk_by_name(), then remove */
-BlockDriverState *bdrv_find(const char *name)
-{
-    BlockBackend *blk = blk_by_name(name);
-
-    return blk ? blk_bs(blk) : NULL;
-}
-
 /* This function is to find a node in the bs graph */
 BlockDriverState *bdrv_find_node(const char *node_name)
 {
diff --git a/include/block/block.h b/include/block/block.h
index 471d11d..2c121a5 100644
--- a/include/block/block.h
+++ b/include/block/block.h
@@ -370,7 +370,6 @@  int bdrv_media_changed(BlockDriverState *bs);
 void bdrv_lock_medium(BlockDriverState *bs, bool locked);
 void bdrv_eject(BlockDriverState *bs, bool eject_flag);
 const char *bdrv_get_format_name(BlockDriverState *bs);
-BlockDriverState *bdrv_find(const char *name);
 BlockDriverState *bdrv_find_node(const char *node_name);
 BlockDeviceInfoList *bdrv_named_nodes_list(void);
 BlockDriverState *bdrv_lookup_bs(const char *device,