aboutsummaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2023-12-08 12:35:23 +0100
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2024-01-19 12:28:59 +0100
commitf07f246734e271b368bfc9afc4cbc437999d58ea (patch)
treea3c017d559a12c78f5116ad3d8beb17d02698eec /system
parent6adcba7c0a58fe9d1b74c4af3dd881253b3a94dd (diff)
downloadqemu-f07f246734e271b368bfc9afc4cbc437999d58ea.zip
qemu-f07f246734e271b368bfc9afc4cbc437999d58ea.tar.gz
qemu-f07f246734e271b368bfc9afc4cbc437999d58ea.tar.bz2
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>
Diffstat (limited to 'system')
-rw-r--r--system/vl.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/system/vl.c b/system/vl.c
index 53850a1..404e7cf 100644
--- a/system/vl.c
+++ b/system/vl.c
@@ -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,