]> git.ipfire.org Git - thirdparty/qemu.git/commit - block.c
block: Remove bdrv_make_anon()
authorKevin Wolf <kwolf@redhat.com>
Fri, 18 Mar 2016 09:46:57 +0000 (10:46 +0100)
committerKevin Wolf <kwolf@redhat.com>
Wed, 30 Mar 2016 09:59:32 +0000 (11:59 +0200)
commit63eaaae08cb7738311f73d1a7e6e6a68ddf60688
tree905d22ce4c2b0dc489c94534498ebc63166d3f23
parent553934db664ecee676650fac0330dceff3531736
block: Remove bdrv_make_anon()

The call in hmp_drive_del() is dead code because blk_remove_bs() is
called a few lines above. The only other remaining user is
bdrv_delete(), which only abuses bdrv_make_anon() to remove it from the
named nodes list. This path inlines the list entry removal into
bdrv_delete() and removes bdrv_make_anon().

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
block.c
blockdev.c
include/block/block.h