datapath: Remove dead code in queue_control_packets().
authorEthan Jackson <ethan@nicira.com>
Fri, 29 Apr 2011 00:13:50 +0000 (17:13 -0700)
committerEthan Jackson <ethan@nicira.com>
Fri, 29 Apr 2011 18:10:51 +0000 (11:10 -0700)
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 <ethan@nicira.com>
datapath/datapath.c

index 05875dc1875b12692fe1f4861b42a852ddd98092..fc00d78788a567c35a77d5505bc2ab699b726c6e 100644 (file)
@@ -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 */