summaryrefslogtreecommitdiffstats
path: root/include/chardev
diff options
context:
space:
mode:
authorGerd Hoffmann2020-10-14 14:11:17 +0200
committerGerd Hoffmann2020-10-15 11:14:40 +0200
commit93ab5844b2cd5367966d7b5bae154e0d3303b504 (patch)
treefdc01b73d9999cb0970d77105fd24a44b25efceb /include/chardev
parentchardev/spice: make qemu_chr_open_spice_port static (diff)
downloadqemu-93ab5844b2cd5367966d7b5bae154e0d3303b504.tar.gz
qemu-93ab5844b2cd5367966d7b5bae154e0d3303b504.tar.xz
qemu-93ab5844b2cd5367966d7b5bae154e0d3303b504.zip
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
Diffstat (limited to 'include/chardev')
-rw-r--r--include/chardev/spice.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/chardev/spice.h b/include/chardev/spice.h
index 1115502cdf..58e5b727e9 100644
--- a/include/chardev/spice.h
+++ b/include/chardev/spice.h
@@ -13,7 +13,6 @@ struct SpiceChardev {
bool blocked;
const uint8_t *datapos;
int datalen;
- QLIST_ENTRY(SpiceChardev) next;
};
typedef struct SpiceChardev SpiceChardev;