aboutsummaryrefslogtreecommitdiff
path: root/hw/usb-bus.c
diff options
context:
space:
mode:
authorTeLeMan <geleman@gmail.com>2010-03-30 09:33:24 +0800
committerAurelien Jarno <aurelien@aurel32.net>2010-04-02 12:12:17 +0200
commit98f22dc172e1ebd5341da3de0d67666442566f72 (patch)
tree373427d1d4e219c3f0f41fd4b47162c611347ce4 /hw/usb-bus.c
parent8152fc0bfa364814d2627532719fcb6f1e3e7744 (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>
Diffstat (limited to 'hw/usb-bus.c')
-rw-r--r--hw/usb-bus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/usb-bus.c b/hw/usb-bus.c
index ce8a6946ad..ee0e9e30e7 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;
}