提交 fb08000c 编写于 作者: M Markus Armbruster 提交者: Kevin Wolf

usb: Remove unused usb_device_add() parameter is_hotplug

Unused since commit b3e461d3.
Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
Signed-off-by: NKevin Wolf <kwolf@redhat.com>
上级 f2747760
...@@ -1315,7 +1315,7 @@ static void smp_parse(const char *optarg) ...@@ -1315,7 +1315,7 @@ static void smp_parse(const char *optarg)
/***********************************************************/ /***********************************************************/
/* USB devices */ /* USB devices */
static int usb_device_add(const char *devname, int is_hotplug) static int usb_device_add(const char *devname)
{ {
const char *p; const char *p;
USBDevice *dev = NULL; USBDevice *dev = NULL;
...@@ -1367,7 +1367,7 @@ static int usb_device_del(const char *devname) ...@@ -1367,7 +1367,7 @@ static int usb_device_del(const char *devname)
static int usb_parse(const char *cmdline) static int usb_parse(const char *cmdline)
{ {
int r; int r;
r = usb_device_add(cmdline, 0); r = usb_device_add(cmdline);
if (r < 0) { if (r < 0) {
fprintf(stderr, "qemu: could not add USB device '%s'\n", cmdline); fprintf(stderr, "qemu: could not add USB device '%s'\n", cmdline);
} }
...@@ -1377,7 +1377,7 @@ static int usb_parse(const char *cmdline) ...@@ -1377,7 +1377,7 @@ static int usb_parse(const char *cmdline)
void do_usb_add(Monitor *mon, const QDict *qdict) void do_usb_add(Monitor *mon, const QDict *qdict)
{ {
const char *devname = qdict_get_str(qdict, "devname"); const char *devname = qdict_get_str(qdict, "devname");
if (usb_device_add(devname, 1) < 0) { if (usb_device_add(devname) < 0) {
error_report("could not add USB device '%s'", devname); error_report("could not add USB device '%s'", devname);
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册