]> git.proxmox.com Git - qemu.git/blobdiff - net/vde.c
net: Fix bogus "Warning: vlan 0 with no nics" with -device
[qemu.git] / net / vde.c
index 42b4633501a7e9462667142ba00fc817cb080afa..0b46fa6405b2cd3d304ba5cd5709394c429584c0 100644 (file)
--- a/net/vde.c
+++ b/net/vde.c
@@ -127,9 +127,5 @@ int net_init_vde(QemuOpts *opts, Monitor *mon, const char *name, VLANState *vlan
         return -1;
     }
 
-    if (vlan) {
-        vlan->nb_host_devs++;
-    }
-
     return 0;
 }