From 20e4d7667af331244a68305d498d79a4cdf00479 Mon Sep 17 00:00:00 2001 From: aliguori Date: Thu, 26 Feb 2009 16:40:31 +0000 Subject: [PATCH] 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 --- hw/device-hotplug.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/device-hotplug.c b/hw/device-hotplug.c index e58ecd6..3bdc048 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) -- 2.7.4