Skip to contentSkip to conversation

char: Remove redundant qemu_chr_generic_open() call.

PATCH Applied Kusanagi Kouichi 2 participants 2 messages Jan 14, 2010 – Jan 19, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 char: Remove redundant qemu_chr_generic_open() call.

qemu_chr_open_fd() calls qemu_chr_generic_open(),
so qemu_chr_open_tty() doesn't need to call it.

---
 qemu-char.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
qemu-char.c +0 -1
index b13f8d4..800ee6c 100644
@@ -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__ */
Signature · 1 line
1.6.6
#1 lore raw
Quoted 5 lines · Kusanagi Kouichi

qemu_chr_open_fd() calls qemu_chr_generic_open(),
so qemu_chr_open_tty() doesn't need to call it.

Applied. Thanks.

Regards,

Anthony Liguori

Quoted 17 lines
---
  qemu-char.c |    1 -
  1 files changed, 0 insertions(+), 1 deletions(-)
qemu-char.c +0 -1
index b13f8d4..800ee6c 100644
@@ -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__ */