char: Remove redundant qemu_chr_generic_open() call.
authorKusanagi Kouichi <slash@ac.auone-net.jp>
Thu, 14 Jan 2010 15:46:24 +0000 (00:46 +0900)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 19 Jan 2010 22:31:03 +0000 (16:31 -0600)
qemu_chr_open_fd() calls qemu_chr_generic_open(),
so qemu_chr_open_tty() doesn't need to call it.

Signed-off-by: Kusanagi Kouichi <slash@ac.auone-net.jp>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
qemu-char.c

index b13f8d4cf7e119564be6c2b017ae8f54db082c7b..800ee6c503b6e7cf4479f4ed7d04ce9008fff567 100644 (file)
@@ -1187,7 +1187,6 @@ static CharDriverState *qemu_chr_open_tty(QemuOpts *opts)
         return NULL;
     }
     chr->chr_ioctl = tty_serial_ioctl;
-    qemu_chr_generic_open(chr);
     return chr;
 }
 #else  /* ! __linux__ && ! __sun__ */