]> git.proxmox.com Git - mirror_qemu.git/blobdiff - qemu-char.c
exec: fix write tlb entry misused as iotlb
[mirror_qemu.git] / qemu-char.c
index c25863a15fd230af2f8b526384a99654ee217507..bb9e3f50a85e41e6cfe9603c84ca71183c48fd2e 100644 (file)
@@ -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;