ofproto: Remove unused variable.
authorEthan Jackson <ethan@nicira.com>
Wed, 27 Apr 2011 00:32:41 +0000 (17:32 -0700)
committerEthan Jackson <ethan@nicira.com>
Wed, 27 Apr 2011 00:32:41 +0000 (17:32 -0700)
Fixes the following warning:

ofproto/ofproto.c:4176:30: error: variable 'pin' set but not used
[-Werror=unused-but-set-variable]

ofproto/ofproto.c

index 7eef93a..445f0d2 100644 (file)
@@ -4173,13 +4173,6 @@ static void
 send_packet_in(struct ofproto *ofproto, struct dpif_upcall *upcall,
                const struct flow *flow, bool clone)
 {
-    struct ofputil_packet_in pin;
-
-    pin.packet = upcall->packet;
-    pin.in_port = odp_port_to_ofp_port(flow->in_port);
-    pin.reason = upcall->type == DPIF_UC_MISS ? OFPR_NO_MATCH : OFPR_ACTION;
-    pin.buffer_id = 0;          /* not yet known */
-    pin.send_len = upcall->userdata;
     connmgr_send_packet_in(ofproto->connmgr, upcall, flow,
                            clone ? NULL : upcall->packet);
 }