From: Ethan Jackson Date: Fri, 29 Apr 2011 00:13:50 +0000 (-0700) Subject: datapath: Remove dead code in queue_control_packets(). X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0ee17a3ba726ec23cc49f2c40da4b084084dbdb7;p=openvswitch datapath: Remove dead code in queue_control_packets(). Fixes the following warning: datapath.c:473:6: warning: variable 'port_no' set but not used [-Wunused-but-set-variable] Signed-off-by: Ethan Jackson --- diff --git a/datapath/datapath.c b/datapath/datapath.c index 05875dc1..fc00d787 100644 --- a/datapath/datapath.c +++ b/datapath/datapath.c @@ -442,14 +442,8 @@ static int queue_control_packets(struct datapath *dp, struct sk_buff *skb, { u32 group = packet_mc_group(dp, upcall_info->cmd); struct sk_buff *nskb; - int port_no; int err; - if (OVS_CB(skb)->vport) - port_no = OVS_CB(skb)->vport->port_no; - else - port_no = ODPP_LOCAL; - do { struct odp_header *upcall; struct sk_buff *user_skb; /* to be queued to userspace */