提交 af0269b0 编写于 作者: L Luiz Capitulino 提交者: Aurelien Jarno

usb-bus: fix no params

After commit 702f3e0f, the params is
nerver NULL. It should check *params instead of params to determine
whether the params is empty.
Signed-off-by: NTeLeMan <geleman@gmail.com>
Signed-off-by: NAurelien Jarno <aurelien@aurel32.net>
Signed-off-by: NLuiz Capitulino <lcapitulino@redhat.com>
(cherry picked from commit 98f22dc1)
上级 d37dbf98
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册