[ovs-dev] [gcc46 2/2] ofproto: Remove unused variable.

Ethan Jackson ethan at nicira.com
Wed Apr 27 00:41:41 UTC 2011


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 files changed, 0 insertions(+), 7 deletions(-)

diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c
index 7eef93a..445f0d2 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);
 }
-- 
1.7.4.4




More information about the dev mailing list