mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-09-09 08:17:53 -06:00
ui/console: new_console() cannot fail
There is no code path that could allow a NULL return there. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Message-Id: <20230830093843.3531473-11-marcandre.lureau@redhat.com>
This commit is contained in:
parent
2fd319cff0
commit
dc6984bdc3
1 changed files with 0 additions and 5 deletions
|
@ -2480,11 +2480,6 @@ static void vc_chr_open(Chardev *chr,
|
||||||
s->surface = qemu_create_displaysurface(width, height);
|
s->surface = qemu_create_displaysurface(width, height);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!s) {
|
|
||||||
error_setg(errp, "cannot create text console");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
s->chr = chr;
|
s->chr = chr;
|
||||||
drv->console = s;
|
drv->console = s;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue