mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
pci: convert PCIUnregisterFunc to void
Not a single driver has any possibility of failure on their exit function, let's keep it that way. Signed-off-by: Alex Williamson <alex.williamson@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
572992eefa
commit
f90c2bcdbc
25 changed files with 47 additions and 83 deletions
|
@ -3427,7 +3427,7 @@ static void rtl8139_cleanup(VLANClientState *nc)
|
|||
s->nic = NULL;
|
||||
}
|
||||
|
||||
static int pci_rtl8139_uninit(PCIDevice *dev)
|
||||
static void pci_rtl8139_uninit(PCIDevice *dev)
|
||||
{
|
||||
RTL8139State *s = DO_UPCAST(RTL8139State, dev, dev);
|
||||
|
||||
|
@ -3440,7 +3440,6 @@ static int pci_rtl8139_uninit(PCIDevice *dev)
|
|||
qemu_del_timer(s->timer);
|
||||
qemu_free_timer(s->timer);
|
||||
qemu_del_vlan_client(&s->nic->nc);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static NetClientInfo net_rtl8139_info = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue