From 0ee17a3ba726ec23cc49f2c40da4b084084dbdb7 Mon Sep 17 00:00:00 2001 From: Ethan Jackson Date: Thu, 28 Apr 2011 17:13:50 -0700 Subject: [PATCH] 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 --- datapath/datapath.c | 6 ------ 1 file changed, 6 deletions(-) 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 */ -- 2.30.2