From: Ethan Jackson Date: Wed, 27 Apr 2011 00:32:41 +0000 (-0700) Subject: ofproto: Remove unused variable. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4f15cb982ff772110509c4292697bbe8a68d0f4;p=openvswitch ofproto: Remove unused variable. Fixes the following warning: ofproto/ofproto.c:4176:30: error: variable 'pin' set but not used [-Werror=unused-but-set-variable] --- diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c index 7eef93a1..445f0d2b 100644 --- a/ofproto/ofproto.c +++ b/ofproto/ofproto.c @@ -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); }