aboutsummaryrefslogtreecommitdiff
path: root/hw/e1000.c
diff options
context:
space:
mode:
authorAlex Williamson <alex.williamson@redhat.com>2012-07-03 22:39:27 -0600
committerMichael S. Tsirkin <mst@redhat.com>2012-07-04 15:52:55 +0300
commitf90c2bcdbc69e41e575f868b984c3e2de8f51bac (patch)
tree1955dd08ce0a5e42ef1079ee292a4e5d95073776 /hw/e1000.c
parent572992eefa74bfb92c24a28bd268de91a9311b0f (diff)
downloadqemu-f90c2bcdbc69e41e575f868b984c3e2de8f51bac.zip
qemu-f90c2bcdbc69e41e575f868b984c3e2de8f51bac.tar.gz
qemu-f90c2bcdbc69e41e575f868b984c3e2de8f51bac.tar.bz2
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>
Diffstat (limited to 'hw/e1000.c')
-rw-r--r--hw/e1000.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/hw/e1000.c b/hw/e1000.c
index 4573f13..6c5bc44 100644
--- a/hw/e1000.c
+++ b/hw/e1000.c
@@ -1192,7 +1192,7 @@ e1000_cleanup(VLANClientState *nc)
s->nic = NULL;
}
-static int
+static void
pci_e1000_uninit(PCIDevice *dev)
{
E1000State *d = DO_UPCAST(E1000State, dev, dev);
@@ -1202,7 +1202,6 @@ pci_e1000_uninit(PCIDevice *dev)
memory_region_destroy(&d->mmio);
memory_region_destroy(&d->io);
qemu_del_vlan_client(&d->nic->nc);
- return 0;
}
static NetClientInfo net_e1000_info = {