brcompat: Drop write-only variable.
authorBen Pfaff <blp@nicira.com>
Thu, 15 Jan 2009 23:34:13 +0000 (15:34 -0800)
committerBen Pfaff <blp@nicira.com>
Thu, 15 Jan 2009 23:34:13 +0000 (15:34 -0800)
vswitchd/brcompat.c

index a6c25cf9dd11d9ef1875d86a2fc177a8d6c496a9..39f0b4a7b28b1fe362c5a113a440199a746737a0 100644 (file)
@@ -208,7 +208,6 @@ brc_modify_config(const char *dp_name, const char *port_name,
     struct svec old_br;
     struct svec old_keys;
     size_t i, j;
-    int n_ports = -1;
 
     if (!config_name) {
         return;
@@ -229,7 +228,6 @@ brc_modify_config(const char *dp_name, const char *port_name,
             if ((act == BMC_DEL_PORT) 
                     && !strcmp(old_br.names[i], dp_name)
                     && !strcmp(old_keys.names[j], port_name)) {
-                n_ports = old_keys.n - 1;
                 continue;
             }
             svec_add_nocopy(&new_cfg,