|
From: | Vladimir Sementsov-Ogievskiy |
Subject: | Re: [PATCH v2 11/44] qemu-option: Replace opt_set() by cleaner opt_validate() |
Date: | Thu, 2 Jul 2020 22:49:36 +0300 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 |
02.07.2020 18:49, Markus Armbruster wrote:
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> -- Best regards, Vladimir
[Prev in Thread] | Current Thread | [Next in Thread] |