aboutsummaryrefslogtreecommitdiff
path: root/net/vde.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/vde.c')
-rw-r--r--net/vde.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/net/vde.c b/net/vde.c
index b0b8800571..99189cccb6 100644
--- a/net/vde.c
+++ b/net/vde.c
@@ -84,7 +84,6 @@ static int net_vde_init(NetClientState *peer, const char *model,
VDECONN *vde;
char *init_group = (char *)group;
char *init_sock = (char *)sock;
- NetdevVdeOptions *stored;
struct vde_open_args args = {
.port = port,
@@ -109,27 +108,6 @@ static int net_vde_init(NetClientState *peer, const char *model,
qemu_set_fd_handler(vde_datafd(s->vde), vde_to_qemu, NULL, s);
- /* Store startup parameters */
- nc->stored_config = g_new0(NetdevInfo, 1);
- nc->stored_config->type = NET_BACKEND_VDE;
- stored = &nc->stored_config->u.vde;
-
- if (sock) {
- stored->has_sock = true;
- stored->sock = g_strdup(sock);
- }
-
- stored->has_port = true;
- stored->port = port;
-
- if (group) {
- stored->has_group = true;
- stored->group = g_strdup(group);
- }
-
- stored->has_mode = true;
- stored->mode = mode;
-
return 0;
}