diff options
author | aliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-02-26 16:40:31 +0000 |
---|---|---|
committer | aliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-02-26 16:40:31 +0000 |
commit | 9a40611cd4e9847caa8a0c80113baf6ad54b4671 (patch) | |
tree | 8e1791957e7a8797dfc4460e8b1fbe19e3bbcc09 /hw/device-hotplug.c | |
parent | 7a11b22eab559e24540059d46c70f4feffe052d7 (diff) |
fix pci net hot-remove (Marcelo Tosatti)
Missing brackets, doh.
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6645 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/device-hotplug.c')
-rw-r--r-- | hw/device-hotplug.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/device-hotplug.c b/hw/device-hotplug.c index e58ecd6dfa..3bdc048c68 100644 --- a/hw/device-hotplug.c +++ b/hw/device-hotplug.c @@ -51,7 +51,7 @@ void destroy_nic(dev_match_fn *match_fn, void *arg) int i; NICInfo *nic; - for (i = 0; i < MAX_NICS; i++) + for (i = 0; i < MAX_NICS; i++) { nic = &nd_table[i]; if (nic->used) { if (nic->private && match_fn(nic->private, arg)) { @@ -64,6 +64,7 @@ void destroy_nic(dev_match_fn *match_fn, void *arg) net_client_uninit(nic); } } + } } void destroy_bdrvs(dev_match_fn *match_fn, void *arg) |