summaryrefslogtreecommitdiff
path: root/block.c
diff options
context:
space:
mode:
authorFam Zheng <famz@redhat.com>2015-03-02 19:36:49 +0800
committerMax Reitz <mreitz@redhat.com>2015-03-16 12:10:30 -0400
commitd51a2427f68a312b676edd0e9efce881649d1767 (patch)
treeb04c84a4a1807dbc01e719b931f0b22b6d04e527 /block.c
parenta0e8544cf84cf193e455a9a3b7d9997dbc268b4b (diff)
downloadqemu-d51a2427f68a312b676edd0e9efce881649d1767.tar.gz
block: Drop bdrv_find
All callers are converted, so drop it. Signed-off-by: Fam Zheng <famz@redhat.com> Message-id: 1425296209-1476-5-git-send-email-famz@redhat.com Reviewed-by: Max Reitz <mreitz@redhat.com> Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'block.c')
-rw-r--r--block.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/block.c b/block.c
index 10c32eb327..0fe97de568 100644
--- a/block.c
+++ b/block.c
@@ -3821,15 +3821,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)
{