Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
elmarco committed Sep 4, 2023
1 parent 2fd319c commit dc6984b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions ui/console.c
Expand Up @@ -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;

Expand Down

0 comments on commit dc6984b

Please sign in to comment.