ofproto/trace: Remove the unused variables.
authorAlex Wang <alexw@nicira.com>
Thu, 9 Jan 2014 00:52:13 +0000 (16:52 -0800)
committerBen Pfaff <blp@nicira.com>
Thu, 9 Jan 2014 01:00:37 +0000 (17:00 -0800)
This commit removes the unused variables in ofproto_trace() function.

Signed-off-by: Alex Wang <alexw@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
ofproto/ofproto-dpif.c

index 03f7840..cf6e213 100644 (file)
@@ -3845,8 +3845,6 @@ ofproto_trace(struct ofproto_dpif *ofproto, const struct flow *flow,
     }
 
     if (rule || ofpacts) {
-        uint64_t odp_actions_stub[1024 / 8];
-        struct ofpbuf odp_actions;
         struct trace_ctx trace;
         struct match match;
         uint16_t tcp_flags;
@@ -3854,8 +3852,6 @@ ofproto_trace(struct ofproto_dpif *ofproto, const struct flow *flow,
         tcp_flags = packet ? packet_get_tcp_flags(packet, flow) : 0;
         trace.result = ds;
         trace.flow = *flow;
-        ofpbuf_use_stub(&odp_actions,
-                        odp_actions_stub, sizeof odp_actions_stub);
         xlate_in_init(&trace.xin, ofproto, flow, rule, tcp_flags, packet);
         if (ofpacts) {
             trace.xin.ofpacts = ofpacts;