qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 48/48] usb: fix -usbdevice option handling with no p


From: Riku Voipio
Subject: [Qemu-devel] [PATCH 48/48] usb: fix -usbdevice option handling with no parameters
Date: Fri, 26 Mar 2010 16:07:08 +0000

From: Juha Riihimäki <address@hidden>

Signed-Off-By: Riku Voipio <address@hidden>
Signed-off-by: Juha Riihimäki <address@hidden>
---
 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 ce8a694..9132d00 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 && *params) {
             error_report("usbdevice %s accepts no params", driver);
             return NULL;
         }
-- 
1.6.5





reply via email to

[Prev in Thread] Current Thread [Next in Thread]