Skip to content
Snippets Groups Projects
Commit 1e13edf3 authored by Marc-André Lureau's avatar Marc-André Lureau
Browse files

char: remove chardevs list


The list is now empty, the chardev cleanup is taken care of by the unref
of the root container.

Signed-off-by: default avatarMarc-André Lureau <marcandre.lureau@redhat.com>
parent c5749f7c
No related branches found
No related tags found
No related merge requests found
......@@ -42,9 +42,6 @@
/***********************************************************/
/* character device */
static QTAILQ_HEAD(ChardevHead, Chardev) chardevs =
QTAILQ_HEAD_INITIALIZER(chardevs);
static Object *get_chardevs_root(void)
{
return container_get(object_get_root(), "/chardevs");
......@@ -418,9 +415,6 @@ static void char_finalize(Object *obj)
{
Chardev *chr = CHARDEV(obj);
if (QTAILQ_IN_USE(chr, next)) {
QTAILQ_REMOVE(&chardevs, chr, next);
}
if (chr->be) {
chr->be->chr = NULL;
}
......
......@@ -95,7 +95,6 @@ struct Chardev {
int be_open;
guint fd_in_tag;
DECLARE_BITMAP(features, QEMU_CHAR_FEATURE_LAST);
QTAILQ_ENTRY(Chardev) next;
};
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment