mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
system/cpu-timers: Have icount_configure() return a boolean
Following the example documented since commit e3fe3988d7
("error:
Document Error API usage rules"), have icount_configure()
return a boolean indicating whether an error is set or not.
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20231208113529.74067-2-philmd@linaro.org>
This commit is contained in:
parent
6adcba7c0a
commit
f07f246734
4 changed files with 21 additions and 12 deletions
|
@ -2270,8 +2270,7 @@ static void user_register_global_props(void)
|
|||
|
||||
static int do_configure_icount(void *opaque, QemuOpts *opts, Error **errp)
|
||||
{
|
||||
icount_configure(opts, errp);
|
||||
return 0;
|
||||
return !icount_configure(opts, errp);
|
||||
}
|
||||
|
||||
static int accelerator_set_property(void *opaque,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue