From: Marc-André Lureau Date: Wed, 30 Aug 2023 09:37:44 +0000 (+0400) Subject: ui/console: new_console() cannot fail X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=dc6984bdc3ebe5357b0c1d983ba4e7689a985f2e;p=qmiga%2Fqemu.git ui/console: new_console() cannot fail There is no code path that could allow a NULL return there. Signed-off-by: Marc-André Lureau Reviewed-by: Daniel P. Berrangé Message-Id: <20230830093843.3531473-11-marcandre.lureau@redhat.com> --- diff --git a/ui/console.c b/ui/console.c index 24cfd31ad6..ddec68feb7 100644 --- a/ui/console.c +++ b/ui/console.c @@ -2480,11 +2480,6 @@ static void vc_chr_open(Chardev *chr, s->surface = qemu_create_displaysurface(width, height); } - if (!s) { - error_setg(errp, "cannot create text console"); - return; - } - s->chr = chr; drv->console = s;