diff options
author | Markus Armbruster <armbru@redhat.com> | 2022-11-21 09:50:50 +0100 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2022-12-14 16:19:35 +0100 |
commit | f766e6dc6acfcfc7e2885518954b1e88111b5527 (patch) | |
tree | 3ad4a34728b89582ab37ae7d20772b538298b09c /block/blkdebug.c | |
parent | 50707b391ecb35dfdd8c92615bca92b601dc3cf1 (diff) | |
download | qemu-f766e6dc6acfcfc7e2885518954b1e88111b5527.zip qemu-f766e6dc6acfcfc7e2885518954b1e88111b5527.tar.gz qemu-f766e6dc6acfcfc7e2885518954b1e88111b5527.tar.bz2 |
qemu-config: Make config_parse_qdict() return bool
This simplifies error checking.
Cc: Hanna Reitz <hreitz@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20221121085054.683122-7-armbru@redhat.com>
Diffstat (limited to 'block/blkdebug.c')
-rw-r--r-- | block/blkdebug.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/block/blkdebug.c b/block/blkdebug.c index 4265ca1..ca65b04 100644 --- a/block/blkdebug.c +++ b/block/blkdebug.c @@ -297,9 +297,7 @@ static int read_config(BDRVBlkdebugState *s, const char *filename, } } - qemu_config_parse_qdict(options, config_groups, &local_err); - if (local_err) { - error_propagate(errp, local_err); + if (!qemu_config_parse_qdict(options, config_groups, errp)) { ret = -EINVAL; goto fail; } |