summary refs log tree commit diff stats
path: root/chardev/char.c
diff options
context:
space:
mode:
authorAlex Bennée <alex.bennee@linaro.org>2023-12-11 14:59:59 +0000
committerAlex Bennée <alex.bennee@linaro.org>2024-01-12 13:23:48 +0000
commit67b5595d3b333fc5bcf82ce1e3aedc217b68b99a (patch)
tree6f80f9b82e4776dea6129fa37d720abbe270b5f2 /chardev/char.c
parent2d41bf0fe1f70021a22033901777cd4ab42ca68f (diff)
downloadfocaccia-qemu-67b5595d3b333fc5bcf82ce1e3aedc217b68b99a.tar.gz
focaccia-qemu-67b5595d3b333fc5bcf82ce1e3aedc217b68b99a.zip
chardev: use bool for fe_is_open
The function qemu_chr_fe_init already treats be->fe_open as a bool and
if it acts like a bool it should be one. While we are at it make the
variable name more descriptive and add kdoc decorations.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20231211145959.93759-1-alex.bennee@linaro.org>
Diffstat (limited to 'chardev/char.c')
-rw-r--r--chardev/char.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/chardev/char.c b/chardev/char.c
index 185b5ea255..3c43fb1278 100644
--- a/chardev/char.c
+++ b/chardev/char.c
@@ -762,7 +762,7 @@ static int qmp_query_chardev_foreach(Object *obj, void *data)
 
     value->label = g_strdup(chr->label);
     value->filename = g_strdup(chr->filename);
-    value->frontend_open = chr->be && chr->be->fe_open;
+    value->frontend_open = chr->be && chr->be->fe_is_open;
 
     QAPI_LIST_PREPEND(*list, value);