~pmdj/ubuntu/trusty/qemu/2.9+applesmc+fadtv3

« back to all changes in this revision

Viewing changes to tests/e1000e-test.c

  • Committer: Phil Dennis-Jordan
  • Date: 2017-07-21 08:03:43 UTC
  • mfrom: (1.1.1)
  • Revision ID: phil@philjordan.eu-20170721080343-2yr2vdj7713czahv
New upstream release 2.9.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
99
99
 
100
100
static void e1000e_pci_foreach_callback(QPCIDevice *dev, int devfn, void *data)
101
101
{
102
 
    *(QPCIDevice **) data = dev;
 
102
    QPCIDevice **res = data;
 
103
 
 
104
    g_assert_null(*res);
 
105
    *res = dev;
103
106
}
104
107
 
105
108
static QPCIDevice *e1000e_device_find(QPCIBus *bus)
403
406
    e1000e_device_clear(test_bus, d);
404
407
    close(test_sockets[0]);
405
408
    pc_alloc_uninit(test_alloc);
 
409
    g_free(d->pci_dev);
406
410
    qpci_free_pc(test_bus);
407
411
    qtest_end();
408
412
}