ofproto: Remove dead variable.
authorEthan Jackson <ethan@nicira.com>
Thu, 17 Nov 2011 23:14:08 +0000 (15:14 -0800)
committerEthan Jackson <ethan@nicira.com>
Thu, 17 Nov 2011 23:32:57 +0000 (15:32 -0800)
Fixes the following gcc warning:
    "error: variable ‘flow_vid’ set but not used
    [-Werror=unused-but-set-variable]"

ofproto/ofproto-dpif.c

index 3e92493..e220d96 100644 (file)
@@ -4617,14 +4617,12 @@ output_mirrors(struct action_xlate_ctx *ctx,
 {
     struct ofproto_dpif *ofproto = ctx->ofproto;
     mirror_mask_t mirrors;
-    uint16_t flow_vid;
 
     mirrors = in_bundle->src_mirrors | dst_mirrors;
     if (!mirrors) {
         return;
     }
 
-    flow_vid = vlan_tci_to_vid(ctx->flow.vlan_tci);
     while (mirrors) {
         struct ofmirror *m;