mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
Remove NICInfo from e1000 and mipsnet state (Mark McLoughlin)
NICInfo isn't used after initialization, so remove it from the driver state structures. Signed-off-by: Mark McLoughlin <markmc@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7147 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
9036de1a8a
commit
ad06714858
2 changed files with 2 additions and 6 deletions
|
@ -35,7 +35,6 @@ typedef struct MIPSnetState {
|
|||
uint8_t tx_buffer[MAX_ETH_FRAME_SIZE];
|
||||
qemu_irq irq;
|
||||
VLANClientState *vc;
|
||||
NICInfo *nd;
|
||||
} MIPSnetState;
|
||||
|
||||
static void mipsnet_reset(MIPSnetState *s)
|
||||
|
@ -248,7 +247,6 @@ void mipsnet_init (int base, qemu_irq irq, NICInfo *nd)
|
|||
register_ioport_read(base, 36, 4, mipsnet_ioport_read, s);
|
||||
|
||||
s->irq = irq;
|
||||
s->nd = nd;
|
||||
if (nd && nd->vlan) {
|
||||
s->vc = qemu_new_vlan_client(nd->vlan, nd->model, nd->name,
|
||||
mipsnet_receive, mipsnet_can_receive, s);
|
||||
|
@ -256,7 +254,7 @@ void mipsnet_init (int base, qemu_irq irq, NICInfo *nd)
|
|||
s->vc = NULL;
|
||||
}
|
||||
|
||||
qemu_format_nic_info_str(s->vc, s->nd->macaddr);
|
||||
qemu_format_nic_info_str(s->vc, nd->macaddr);
|
||||
|
||||
mipsnet_reset(s);
|
||||
register_savevm("mipsnet", 0, 0, mipsnet_save, mipsnet_load, s);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue