diff options
author | Luiz Capitulino <lcapitulino@redhat.com> | 2010-06-02 17:19:56 -0300 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2010-06-09 12:45:03 +0200 |
commit | af0269b03607b3a2f653d190c7aebb6da4640046 (patch) | |
tree | 3a0a6acf367b5526db551dca11650d24a7c77551 /hw | |
parent | d37dbf988d0d350d252c6952fcde5f4b94eed010 (diff) |
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 <geleman@gmail.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
(cherry picked from commit 98f22dc172e1ebd5341da3de0d67666442566f72)
Diffstat (limited to 'hw')
-rw-r--r-- | 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 3bb89862b0..aae1fef7ff 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; } |