After commit 702f3e0fb52c124c07f215426eeadb70a716643f, the params is nerver NULL. It should check *params instead of params to determine whether the params is empty.
Conflicts: hw/usb-bus.c Signed-off-by: TeLeMan <gele...@gmail.com> Signed-off-by: Aurelien Jarno <aurel...@aurel32.net> Signed-off-by: Luiz Capitulino <lcapitul...@redhat.com> (cherry picked from commit 98f22dc172e1ebd5341da3de0d67666442566f72) --- hw/usb-bus.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/usb-bus.c b/hw/usb-bus.c index 3bb8986..aae1fef 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; } -- 1.7.1.231.gd0b16