From: TeLeMan Date: Tue, 30 Mar 2010 01:33:24 +0000 (+0800) Subject: usb-bus: fix no params X-Git-Tag: v0.13.0-rc0~885 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=98f22dc172e1ebd5341da3de0d67666442566f72;p=qemu.git usb-bus: fix no params After commit 702f3e0fb52c124c07f215426eeadb70a716643f, the params is nerver NULL. It should check *params instead of params to determine whether the params is empty. Signed-off-by: TeLeMan Signed-off-by: Aurelien Jarno --- diff --git a/hw/usb-bus.c b/hw/usb-bus.c index ce8a6946a..ee0e9e30e 100644 --- a/hw/usb-bus.c +++ b/hw/usb-bus.c @@ -299,7 +299,7 @@ USBDevice *usbdevice_create(const char *cmdline) } if (!usb->usbdevice_init) { - if (params) { + if (*params) { error_report("usbdevice %s accepts no params", driver); return NULL; }