chardev/spice: simplify chardev setup

Initialize spice before chardevs.  That allows to register the spice
chardevs directly in the init function and removes the need to maintain
a linked list of chardevs just for registration.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-id: 20201014121120.13482-5-kraxel@redhat.com
This commit is contained in:
Gerd Hoffmann
2020-10-14 14:11:17 +02:00
parent 70122d6230
commit 93ab5844b2
6 changed files with 20 additions and 39 deletions

View File

@@ -13,7 +13,6 @@ struct SpiceChardev {
bool blocked;
const uint8_t *datapos;
int datalen;
QLIST_ENTRY(SpiceChardev) next;
};
typedef struct SpiceChardev SpiceChardev;