Skip to content

Commit

Permalink
caif: caifdev is never used in net/caif/caif_dev.c::transmit() - remo…
Browse files Browse the repository at this point in the history
…ve it.

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Jesper Juhl authored and David S. Miller committed Feb 5, 2012
1 parent 22b6a2e commit 1f0b670
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions net/caif/caif_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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))
Expand Down

0 comments on commit 1f0b670

Please sign in to comment.