From: Ben Pfaff Date: Fri, 9 Jan 2009 01:21:46 +0000 (-0800) Subject: learning-switch: Remove unused variable. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=553d85421ccc35e3f3d1828d3c5752f385b55238;p=openvswitch learning-switch: Remove unused variable. Found by Chris Eagle via Fortify. --- diff --git a/lib/learning-switch.c b/lib/learning-switch.c index b312cb32..22838120 100644 --- a/lib/learning-switch.c +++ b/lib/learning-switch.c @@ -592,8 +592,6 @@ process_flow_stats(struct lswitch *sw, struct rconn *rconn, size_t len; for (a = ofs->actions; (char *) a < end; a += len / 8) { - uint16_t type; - len = ntohs(a->len); if (len > end - (char *) a) { VLOG_DBG_RL(&rl, "%012llx: action exceeds available space " @@ -606,7 +604,6 @@ process_flow_stats(struct lswitch *sw, struct rconn *rconn, break; } - type = ntohs(a->type); if (a->type == htons(OFPAT_OUTPUT)) { struct ofp_action_output *oao = (struct ofp_action_output *) a; if (!may_send(sw, ntohs(oao->port))) {