qemu-char: Rename opened to be_open

Rename the opened variable to be_open to reflect that it contains the
opened state of the backend.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Message-id: 1364292483-16564-2-git-send-email-hdegoede@redhat.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
Hans de Goede 2013-03-26 11:07:53 +01:00 committed by Anthony Liguori
parent 99835e0084
commit 16665b943b
5 changed files with 8 additions and 8 deletions

View file

@ -495,7 +495,7 @@ static int usb_serial_initfn(USBDevice *dev)
usb_serial_event, s);
usb_serial_handle_reset(dev);
if (s->cs->opened && !dev->attached) {
if (s->cs->be_open && !dev->attached) {
usb_device_attach(dev);
}
return 0;