From patchwork Fri Mar 19 04:59:24 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: usb-bus: fix no params From: TeLeMan X-Patchwork-Id: 48110 Message-Id: To: qemu-devel Date: Fri, 19 Mar 2010 12:59:24 +0800 The "params" is never NULL and the usb hid devices have no params. Signed-off-by: TeLeMan --- hw/usb-bus.c | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/hw/usb-bus.c b/hw/usb-bus.c index ce8a694..f3f1ed6 100644 --- a/hw/usb-bus.c +++ b/hw/usb-bus.c @@ -299,10 +299,6 @@ USBDevice *usbdevice_create(const char *cmdline) } if (!usb->usbdevice_init) { - if (params) { - error_report("usbdevice %s accepts no params", driver); - return NULL; - } return usb_create_simple(bus, usb->qdev.name); } return usb->usbdevice_init(params);