From: aliguori Date: Thu, 26 Feb 2009 16:40:31 +0000 (+0000) Subject: fix pci net hot-remove (Marcelo Tosatti) X-Git-Tag: xen-3.4.0-rc2~12^2~40 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=9a40611cd4e9847caa8a0c80113baf6ad54b4671;p=qemu-xen-3.4-testing.git fix pci net hot-remove (Marcelo Tosatti) Missing brackets, doh. Signed-off-by: Marcelo Tosatti Signed-off-by: Anthony Liguori git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6645 c046a42c-6fe2-441c-8c8c-71466251a162 --- diff --git a/hw/device-hotplug.c b/hw/device-hotplug.c index e58ecd6d..3bdc048c 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)