diff options
Diffstat (limited to 'drivers/net/wireless/rtl818x/rtl8187_dev.c')
-rw-r--r-- | drivers/net/wireless/rtl818x/rtl8187_dev.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/net/wireless/rtl818x/rtl8187_dev.c b/drivers/net/wireless/rtl818x/rtl8187_dev.c index 6499ccc34c94..3f22cc0c9679 100644 --- a/drivers/net/wireless/rtl818x/rtl8187_dev.c +++ b/drivers/net/wireless/rtl818x/rtl8187_dev.c | |||
@@ -321,12 +321,7 @@ static void rtl8187_rx_cb(struct urb *urb) | |||
321 | unsigned long f; | 321 | unsigned long f; |
322 | 322 | ||
323 | spin_lock_irqsave(&priv->rx_queue.lock, f); | 323 | spin_lock_irqsave(&priv->rx_queue.lock, f); |
324 | if (skb->next) | 324 | __skb_unlink(skb, &priv->rx_queue); |
325 | __skb_unlink(skb, &priv->rx_queue); | ||
326 | else { | ||
327 | spin_unlock_irqrestore(&priv->rx_queue.lock, f); | ||
328 | return; | ||
329 | } | ||
330 | spin_unlock_irqrestore(&priv->rx_queue.lock, f); | 325 | spin_unlock_irqrestore(&priv->rx_queue.lock, f); |
331 | skb_put(skb, urb->actual_length); | 326 | skb_put(skb, urb->actual_length); |
332 | 327 | ||