From: Ben Pfaff Date: Thu, 15 Jan 2009 23:34:13 +0000 (-0800) Subject: brcompat: Drop write-only variable. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=41cc3dda684a7654048923c2ff8fea54c68aff1c;p=openvswitch brcompat: Drop write-only variable. --- diff --git a/vswitchd/brcompat.c b/vswitchd/brcompat.c index a6c25cf9..39f0b4a7 100644 --- a/vswitchd/brcompat.c +++ b/vswitchd/brcompat.c @@ -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,