]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
xm_internal.c: remove dead stores of local, "type"
authorJim Meyering <meyering@redhat.com>
Fri, 4 Sep 2009 14:49:37 +0000 (16:49 +0200)
committerJim Meyering <meyering@redhat.com>
Mon, 7 Sep 2009 16:13:42 +0000 (18:13 +0200)
* src/xm_internal.c (xenXMDomainConfigParse): Remove declaration
and useless containing if-block, too.

src/xm_internal.c

index 2595a5e9a575d1cd1700e8cdeb391bac05fed98b..e6756722a41d7593b37a96311baf06c8cc415ea0 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * xm_internal.h: helper routines for dealing with inactive domains
  *
- * Copyright (C) 2006-2007 Red Hat
+ * Copyright (C) 2006-2007, 2009 Red Hat
  * Copyright (C) 2006 Daniel P. Berrange
  *
  * This library is free software; you can redistribute it and/or
@@ -995,7 +995,6 @@ xenXMDomainConfigParse(virConnectPtr conn, virConfPtr conf) {
     if (list && list->type == VIR_CONF_LIST) {
         list = list->list;
         while (list) {
-            int type = -1;
             char script[PATH_MAX];
             char model[10];
             char ip[16];
@@ -1031,7 +1030,6 @@ xenXMDomainConfigParse(virConnectPtr conn, virConfPtr conf) {
                     mac[len] = '\0';
                 } else if (STRPREFIX(key, "bridge=")) {
                     int len = nextkey ? (nextkey - data) : sizeof(bridge)-1;
-                    type = 1;
                     if (len > (sizeof(bridge)-1))
                         len = sizeof(bridge)-1;
                     strncpy(bridge, data, len);
@@ -1069,11 +1067,6 @@ xenXMDomainConfigParse(virConnectPtr conn, virConfPtr conf) {
                 key = nextkey;
             }
 
-            /* XXX Forcing to pretend its a bridge */
-            if (type == -1) {
-                type = 1;
-            }
-
             if (VIR_ALLOC(net) < 0)
                 goto cleanup;