From 16a5ebb4c5ee7da90a39ccb086f4ff2519e50298 Mon Sep 17 00:00:00 2001 From: Luiz Capitulino Date: Wed, 2 Jun 2010 17:19:56 -0300 Subject: 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) --- hw/usb-bus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/usb-bus.c b/hw/usb-bus.c index 3bb89862b..aae1fef7f 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; } -- cgit v1.2.3-65-gdbad