util: Suppress build assertions when building with sparse.
[openvswitch] / 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 */