Revision d44168ff hw/usb-serial.c

b/hw/usb-serial.c
594 594
        return NULL;
595 595

  
596 596
    dev = usb_create(NULL /* FIXME */, "usb-serial");
597
    if (!dev) {
598
        return NULL;
599
    }
597 600
    qdev_prop_set_chr(&dev->qdev, "chardev", cdrv);
598 601
    if (vendorid)
599 602
        qdev_prop_set_uint16(&dev->qdev, "vendorid", vendorid);

Also available in: Unified diff