Commit 9a40611cd4e9847caa8a0c80113baf6ad54b4671
1 parent
7a11b22e
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
Showing
1 changed file
with
2 additions
and
1 deletions
hw/device-hotplug.c
@@ -51,7 +51,7 @@ void destroy_nic(dev_match_fn *match_fn, void *arg) | @@ -51,7 +51,7 @@ void destroy_nic(dev_match_fn *match_fn, void *arg) | ||
51 | int i; | 51 | int i; |
52 | NICInfo *nic; | 52 | NICInfo *nic; |
53 | 53 | ||
54 | - for (i = 0; i < MAX_NICS; i++) | 54 | + for (i = 0; i < MAX_NICS; i++) { |
55 | nic = &nd_table[i]; | 55 | nic = &nd_table[i]; |
56 | if (nic->used) { | 56 | if (nic->used) { |
57 | if (nic->private && match_fn(nic->private, arg)) { | 57 | if (nic->private && match_fn(nic->private, arg)) { |
@@ -64,6 +64,7 @@ void destroy_nic(dev_match_fn *match_fn, void *arg) | @@ -64,6 +64,7 @@ void destroy_nic(dev_match_fn *match_fn, void *arg) | ||
64 | net_client_uninit(nic); | 64 | net_client_uninit(nic); |
65 | } | 65 | } |
66 | } | 66 | } |
67 | + } | ||
67 | } | 68 | } |
68 | 69 | ||
69 | void destroy_bdrvs(dev_match_fn *match_fn, void *arg) | 70 | void destroy_bdrvs(dev_match_fn *match_fn, void *arg) |