caif: caifdev is never used in net/caif/caif_dev.c::transmit() - remove it.
authorJesper Juhl <jj@chaosbits.net>
Sun, 5 Feb 2012 12:50:46 +0000 (12:50 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 5 Feb 2012 22:53:04 +0000 (17:53 -0500)
Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/caif/caif_dev.c

index 82c57069415fe6644b1c64eff665846b87c63f7a..aa6f716524fd3c0aecbeb0b9393f84df2c8046de 100644 (file)
@@ -162,7 +162,6 @@ void caif_flow_cb(struct sk_buff *skb)
 static int transmit(struct cflayer *layer, struct cfpkt *pkt)
 {
        int err, high = 0, qlen = 0;
-       struct caif_dev_common *caifdev;
        struct caif_device_entry *caifd =
            container_of(layer, struct caif_device_entry, layer);
        struct sk_buff *skb;
@@ -174,7 +173,6 @@ static int transmit(struct cflayer *layer, struct cfpkt *pkt)
        skb->dev = caifd->netdev;
        skb_reset_network_header(skb);
        skb->protocol = htons(ETH_P_CAIF);
-       caifdev = netdev_priv(caifd->netdev);
 
        /* Check if we need to handle xoff */
        if (likely(caifd->netdev->tx_queue_len == 0))