From d4f15cb982ff772110509c4292697bbe8a68d0f4 Mon Sep 17 00:00:00 2001 From: Ethan Jackson Date: Tue, 26 Apr 2011 17:32:41 -0700 Subject: [PATCH] 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] --- ofproto/ofproto.c | 7 ------- 1 file changed, 7 deletions(-) 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); } -- 2.30.2