summary refs log tree commit diff stats
path: root/include
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2022-11-24 16:22:22 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2024-06-28 14:44:51 +0200
commit44b424dc4a3e2d47fa20676f00645fb950d8d76a (patch)
tree879cb468d717e92fdfd35c9981af161cfa61201a /include
parent41770f6e6ff41ca98e130c79b566f05ec68912fe (diff)
downloadfocaccia-qemu-44b424dc4a3e2d47fa20676f00645fb950d8d76a.tar.gz
focaccia-qemu-44b424dc4a3e2d47fa20676f00645fb950d8d76a.zip
block: remove separate bdrv_file_open callback
bdrv_file_open and bdrv_open are completely equivalent, they are
never checked except to see which one to invoke.  So merge them
into a single one.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/block/block_int-common.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/include/block/block_int-common.h b/include/block/block_int-common.h
index 761276127e..ebb4e56a50 100644
--- a/include/block/block_int-common.h
+++ b/include/block/block_int-common.h
@@ -248,9 +248,6 @@ struct BlockDriver {
     int GRAPH_UNLOCKED_PTR (*bdrv_open)(
         BlockDriverState *bs, QDict *options, int flags, Error **errp);
 
-    /* Protocol drivers should implement this instead of bdrv_open */
-    int GRAPH_UNLOCKED_PTR (*bdrv_file_open)(
-        BlockDriverState *bs, QDict *options, int flags, Error **errp);
     void (*bdrv_close)(BlockDriverState *bs);
 
     int coroutine_fn GRAPH_UNLOCKED_PTR (*bdrv_co_create)(