diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2022-11-24 16:22:22 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2024-06-28 14:44:51 +0200 |
commit | 44b424dc4a3e2d47fa20676f00645fb950d8d76a (patch) | |
tree | 879cb468d717e92fdfd35c9981af161cfa61201a /block/null.c | |
parent | 41770f6e6ff41ca98e130c79b566f05ec68912fe (diff) |
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 'block/null.c')
-rw-r--r-- | block/null.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/block/null.c b/block/null.c index 4808704ffd..6fa64d20d8 100644 --- a/block/null.c +++ b/block/null.c @@ -283,7 +283,7 @@ static BlockDriver bdrv_null_co = { .protocol_name = "null-co", .instance_size = sizeof(BDRVNullState), - .bdrv_file_open = null_file_open, + .bdrv_open = null_file_open, .bdrv_parse_filename = null_co_parse_filename, .bdrv_co_getlength = null_co_getlength, .bdrv_co_get_allocated_file_size = null_co_get_allocated_file_size, @@ -304,7 +304,7 @@ static BlockDriver bdrv_null_aio = { .protocol_name = "null-aio", .instance_size = sizeof(BDRVNullState), - .bdrv_file_open = null_file_open, + .bdrv_open = null_file_open, .bdrv_parse_filename = null_aio_parse_filename, .bdrv_co_getlength = null_co_getlength, .bdrv_co_get_allocated_file_size = null_co_get_allocated_file_size, |