summaryrefslogtreecommitdiffstats
path: root/hw/misc/pci-testdev.c
diff options
context:
space:
mode:
authorMarkus Armbruster2020-07-07 18:05:40 +0200
committerMarkus Armbruster2020-07-10 15:01:06 +0200
commit64af7a8bad2cbda178730a842fa0d43d02415dbc (patch)
treeb9a6312d082c325cd1d1d0b1d719249076efec60 /hw/misc/pci-testdev.c
parentqemu-option: Factor out helper opt_create() (diff)
downloadqemu-64af7a8bad2cbda178730a842fa0d43d02415dbc.tar.gz
qemu-64af7a8bad2cbda178730a842fa0d43d02415dbc.tar.xz
qemu-64af7a8bad2cbda178730a842fa0d43d02415dbc.zip
qemu-option: Replace opt_set() by cleaner opt_validate()
opt_set() frees its argument @value on failure. Slightly unclean; functions ideally do nothing on failure. To tidy this up, move opt_create() from opt_set() into its callers, along with the cleanup. Rename opt_set() to opt_validate(), noting its similarity to qemu_opts_validate(). Drop redundant parameter @opts; use opt->opts instead. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Message-Id: <20200707160613.848843-13-armbru@redhat.com>
Diffstat (limited to 'hw/misc/pci-testdev.c')
0 files changed, 0 insertions, 0 deletions