summaryrefslogtreecommitdiffstats
path: root/hw/usb-net.c
diff options
context:
space:
mode:
authorMark McLoughlin2009-11-25 19:48:59 +0100
committerAnthony Liguori2009-12-03 16:41:28 +0100
commite13b10be5ce0333f857b627e112230a547911369 (patch)
treee5cd5e138a35bb3c33ad8fa1c1bfed7889a8d34a /hw/usb-net.c
parentnet: clean up includes in net.c (diff)
downloadqemu-e13b10be5ce0333f857b627e112230a547911369.tar.gz
qemu-e13b10be5ce0333f857b627e112230a547911369.tar.xz
qemu-e13b10be5ce0333f857b627e112230a547911369.zip
net: remove NICInfo::vc
Since 1cc33683, this field is not set for most devices, so just remove it and its remaining few uses. Signed-off-by: Mark McLoughlin <markmc@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/usb-net.c')
-rw-r--r--hw/usb-net.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/hw/usb-net.c b/hw/usb-net.c
index 9c6549c75d..7b8cc7ad13 100644
--- a/hw/usb-net.c
+++ b/hw/usb-net.c
@@ -1460,13 +1460,13 @@ USBDevice *usb_net_init(NICInfo *nd)
memcpy(s->mac, nd->macaddr, 6);
- s->vc = nd->vc = qemu_new_vlan_client(NET_CLIENT_TYPE_NIC,
- nd->vlan, nd->netdev,
- nd->model, nd->name,
- usbnet_can_receive,
- usbnet_receive,
- NULL, NULL,
- usbnet_cleanup, s);
+ s->vc = qemu_new_vlan_client(NET_CLIENT_TYPE_NIC,
+ nd->vlan, nd->netdev,
+ nd->model, nd->name,
+ usbnet_can_receive,
+ usbnet_receive,
+ NULL, NULL,
+ usbnet_cleanup, s);
qemu_format_nic_info_str(s->vc, s->mac);