mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
char: replace avail_connections
No need to count the users of a CharDriverState, it can rely on the fact of whether there is a CharBackend associated or if there is enough space in the muxer. Simplify and fold chr_mux_new_fe() in qemu_chr_fe_init() since there is a single user now. Also switch from fprintf to raising error instead. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20161022100951.19562-5-marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
58fa54947e
commit
3aef23d7d8
3 changed files with 13 additions and 23 deletions
|
@ -468,7 +468,6 @@ CharDriverState *uart_hci_init(void)
|
|||
s->chr.opaque = s;
|
||||
s->chr.chr_write = csrhci_write;
|
||||
s->chr.chr_ioctl = csrhci_ioctl;
|
||||
s->chr.avail_connections = 1;
|
||||
|
||||
s->hci = qemu_next_hci();
|
||||
s->hci->opaque = s;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue