From: Luiz Capitulino Date: Wed, 2 Jun 2010 20:19:56 +0000 (-0300) Subject: usb-bus: fix no params X-Git-Tag: v0.12.5~31 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=af0269b03607b3a2f653d190c7aebb6da4640046;p=thirdparty%2Fqemu.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 Signed-off-by: Luiz Capitulino (cherry picked from commit 98f22dc172e1ebd5341da3de0d67666442566f72) --- diff --git a/hw/usb-bus.c b/hw/usb-bus.c index 3bb89862b0c..aae1fef7ff4 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) { qemu_error("usbdevice %s accepts no params\n", driver); return NULL; }