diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2023-08-30 13:37:44 +0400 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2023-09-04 12:37:54 +0400 |
commit | dc6984bdc3ebe5357b0c1d983ba4e7689a985f2e (patch) | |
tree | 0a05bdc9089a4eebefced6eb1f23785bd6bfdd95 /ui | |
parent | 2fd319cff0ffbc0b54a61a2a34775ec40836e4c4 (diff) | |
download | qemu-dc6984bdc3ebe5357b0c1d983ba4e7689a985f2e.zip qemu-dc6984bdc3ebe5357b0c1d983ba4e7689a985f2e.tar.gz qemu-dc6984bdc3ebe5357b0c1d983ba4e7689a985f2e.tar.bz2 |
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>
Diffstat (limited to 'ui')
-rw-r--r-- | ui/console.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/ui/console.c b/ui/console.c index 24cfd31..ddec68f 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; |