mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
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>
This commit is contained in:
parent
1df49e0472
commit
e13b10be5c
6 changed files with 27 additions and 28 deletions
10
hw/mipsnet.c
10
hw/mipsnet.c
|
@ -263,11 +263,11 @@ void mipsnet_init (int base, qemu_irq irq, NICInfo *nd)
|
|||
s->io_base = base;
|
||||
s->irq = irq;
|
||||
if (nd) {
|
||||
s->vc = nd->vc = qemu_new_vlan_client(NET_CLIENT_TYPE_NIC,
|
||||
nd->vlan, nd->netdev,
|
||||
nd->model, nd->name,
|
||||
mipsnet_can_receive, mipsnet_receive,
|
||||
NULL, NULL, mipsnet_cleanup, s);
|
||||
s->vc = qemu_new_vlan_client(NET_CLIENT_TYPE_NIC,
|
||||
nd->vlan, nd->netdev,
|
||||
nd->model, nd->name,
|
||||
mipsnet_can_receive, mipsnet_receive,
|
||||
NULL, NULL, mipsnet_cleanup, s);
|
||||
} else {
|
||||
s->vc = NULL;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue