diff options
| author | Luiz Capitulino | 2012-04-12 18:20:40 +0200 |
|---|---|---|
| committer | Luiz Capitulino | 2012-06-04 18:49:35 +0200 |
| commit | 42dcc547e1982f31d0f678e02f0aae5be570384a (patch) | |
| tree | 79b4c258f03b57ea509d5a111848ea9f3ec0bb98 /hw | |
| parent | qemu-config: introduce qemu_find_opts_err() (diff) | |
| download | qemu-42dcc547e1982f31d0f678e02f0aae5be570384a.tar.gz qemu-42dcc547e1982f31d0f678e02f0aae5be570384a.tar.xz qemu-42dcc547e1982f31d0f678e02f0aae5be570384a.zip | |
net: purge the monitor object from all init functions
The only backend that really uses it is the socket one, which calls
monitor_get_fd(). But it can use 'cur_mon' instead.
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Reviewed-By: Laszlo Ersek <lersek@redhat.com>
Diffstat (limited to 'hw')
| -rw-r--r-- | hw/pci-hotplug.c | 2 | ||||
| -rw-r--r-- | hw/usb/dev-network.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/hw/pci-hotplug.c b/hw/pci-hotplug.c index c55d8b9396..785eb3d889 100644 --- a/hw/pci-hotplug.c +++ b/hw/pci-hotplug.c @@ -60,7 +60,7 @@ static PCIDevice *qemu_pci_hot_add_nic(Monitor *mon, qemu_opt_set(opts, "type", "nic"); - ret = net_client_init(mon, opts, 0); + ret = net_client_init(opts, 0); if (ret < 0) return NULL; if (nd_table[ret].devaddr) { diff --git a/hw/usb/dev-network.c b/hw/usb/dev-network.c index b238a0973d..4e26e64d63 100644 --- a/hw/usb/dev-network.c +++ b/hw/usb/dev-network.c @@ -1367,7 +1367,7 @@ static USBDevice *usb_net_init(USBBus *bus, const char *cmdline) qemu_opt_set(opts, "type", "nic"); qemu_opt_set(opts, "model", "usb"); - idx = net_client_init(NULL, opts, 0); + idx = net_client_init(opts, 0); if (idx == -1) { return NULL; } |
