mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
block: Drop errp parameter from blk_new()
blk_new() cannot fail so its Error ** parameter has become superfluous. Signed-off-by: Max Reitz <mreitz@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
6b574e09b3
commit
109525ad6a
4 changed files with 7 additions and 16 deletions
|
@ -78,7 +78,7 @@ typedef struct BlockBackendPublic {
|
|||
QLIST_ENTRY(BlockBackendPublic) round_robin;
|
||||
} BlockBackendPublic;
|
||||
|
||||
BlockBackend *blk_new(Error **errp);
|
||||
BlockBackend *blk_new(void);
|
||||
BlockBackend *blk_new_open(const char *filename, const char *reference,
|
||||
QDict *options, int flags, Error **errp);
|
||||
int blk_get_refcnt(BlockBackend *blk);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue