aboutsummaryrefslogtreecommitdiffstats
path: root/net/caif
diff options
context:
space:
mode:
Diffstat (limited to 'net/caif')
-rw-r--r--net/caif/caif_dev.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/net/caif/caif_dev.c b/net/caif/caif_dev.c
index 82c57069415f..aa6f716524fd 100644
--- a/net/caif/caif_dev.c
+++ b/net/caif/caif_dev.c
@@ -162,7 +162,6 @@ void caif_flow_cb(struct sk_buff *skb)
162static int transmit(struct cflayer *layer, struct cfpkt *pkt) 162static int transmit(struct cflayer *layer, struct cfpkt *pkt)
163{ 163{
164 int err, high = 0, qlen = 0; 164 int err, high = 0, qlen = 0;
165 struct caif_dev_common *caifdev;
166 struct caif_device_entry *caifd = 165 struct caif_device_entry *caifd =
167 container_of(layer, struct caif_device_entry, layer); 166 container_of(layer, struct caif_device_entry, layer);
168 struct sk_buff *skb; 167 struct sk_buff *skb;
@@ -174,7 +173,6 @@ static int transmit(struct cflayer *layer, struct cfpkt *pkt)
174 skb->dev = caifd->netdev; 173 skb->dev = caifd->netdev;
175 skb_reset_network_header(skb); 174 skb_reset_network_header(skb);
176 skb->protocol = htons(ETH_P_CAIF); 175 skb->protocol = htons(ETH_P_CAIF);
177 caifdev = netdev_priv(caifd->netdev);
178 176
179 /* Check if we need to handle xoff */ 177 /* Check if we need to handle xoff */
180 if (likely(caifd->netdev->tx_queue_len == 0)) 178 if (likely(caifd->netdev->tx_queue_len == 0))