aboutsummaryrefslogtreecommitdiff
path: root/qemu-char.c
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2012-02-07 15:09:11 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2012-02-24 09:06:57 -0600
commitd7378ee1c159ee0bf6deffa9e87020cb820af45c (patch)
treef5a5a5d089c566db079907df519dde4e47caf07c /qemu-char.c
parenta89dd6c32e4b7b6868c39cfc7deba95f3cf3ce94 (diff)
qemu-char: qemu_chr_open_fd() can't fail, don't check
Cleaned up silently in commit aad04cd0, but that just got reverted. Re-apply this part. Reviewed-by: Anthony Liguori <aliguori@us.ibm.com> Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'qemu-char.c')
-rw-r--r--qemu-char.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/qemu-char.c b/qemu-char.c
index c25863a15f..bb9e3f50a8 100644
--- a/qemu-char.c
+++ b/qemu-char.c
@@ -1226,10 +1226,6 @@ static CharDriverState *qemu_chr_open_tty(QemuOpts *opts)
}
tty_serial_init(fd, 115200, 'N', 8, 1);
chr = qemu_chr_open_fd(fd, fd);
- if (!chr) {
- close(fd);
- return NULL;
- }
chr->chr_ioctl = tty_serial_ioctl;
chr->chr_close = qemu_chr_close_tty;
return chr;