summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEthan Jackson <ethan@nicira.com>2011-03-29 12:37:49 -0700
committerEthan Jackson <ethan@nicira.com>2011-03-31 16:40:43 -0700
commit4f168c2c3b59f7fe405564188624132277e37ffc (patch)
treece308232bbe934ebb1d8478df085bba07dd6efc6
parentaca8556998ad58619d5d6952c7a724c85ae676c6 (diff)
downloadopenvswitch-4f168c2c3b59f7fe405564188624132277e37ffc.tar.gz
learning-switch: Remove dead assignment.
-rw-r--r--lib/learning-switch.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/learning-switch.c b/lib/learning-switch.c
index 97aaf9fe5..dc9af7739 100644
--- a/lib/learning-switch.c
+++ b/lib/learning-switch.c
@@ -440,7 +440,6 @@ process_packet_in(struct lswitch *sw, struct rconn *rconn,
/* Send the packet, and possibly the whole flow, to the output port. */
if (sw->max_idle >= 0 && (!sw->ml || out_port != OFPP_FLOOD)) {
struct ofpbuf *buffer;
- struct ofp_flow_mod *ofm;
struct cls_rule rule;
/* The output port is known, or we always flood everything, so add a
@@ -449,7 +448,6 @@ process_packet_in(struct lswitch *sw, struct rconn *rconn,
buffer = make_add_flow(&rule, ntohl(opi->buffer_id),
sw->max_idle, actions_len);
ofpbuf_put(buffer, actions, actions_len);
- ofm = buffer->data;
queue_tx(sw, rconn, buffer);
/* If the switch didn't buffer the packet, we need to send a copy. */