[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] Fix net_check_clients warnings: make it per vla
From: |
Markus Armbruster |
Subject: |
Re: [Qemu-devel] [PATCH] Fix net_check_clients warnings: make it per vlan. |
Date: |
Wed, 16 Mar 2011 08:04:36 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) |
Tristan Gingold <address@hidden> writes:
> Signed-off-by: Tristan Gingold <address@hidden>
> ---
> net.c | 3 ++-
> 1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/net.c b/net.c
> index ddcca97..b2dfaa8 100644
> --- a/net.c
> +++ b/net.c
> @@ -1305,9 +1305,10 @@ void net_check_clients(void)
> {
> VLANState *vlan;
> VLANClientState *vc;
> - int has_nic = 0, has_host_dev = 0;
>
> QTAILQ_FOREACH(vlan, &vlans, next) {
> + int has_nic = 0, has_host_dev = 0;
> +
> QTAILQ_FOREACH(vc, &vlan->clients, next) {
> switch (vc->info->type) {
> case NET_CLIENT_TYPE_NIC:
Screwed up in commit 62112d18 by yours truly, and papered over in commit
64e69d50 by Blue.
Reviewed-by: Markus Armbruster <address@hidden>