aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/gianfar.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/gianfar.c b/drivers/net/gianfar.c
index 3e611a69df13..a6efabc28dc8 100644
--- a/drivers/net/gianfar.c
+++ b/drivers/net/gianfar.c
@@ -1732,8 +1732,7 @@ int gfar_clean_rx_ring(struct net_device *dev, int rx_work_limit)
1732 1732
1733 if (unlikely(!newskb)) 1733 if (unlikely(!newskb))
1734 newskb = skb; 1734 newskb = skb;
1735 1735 else if (skb)
1736 if (skb)
1737 dev_kfree_skb_any(skb); 1736 dev_kfree_skb_any(skb);
1738 } else { 1737 } else {
1739 /* Increment the number of packets */ 1738 /* Increment the number of packets */