aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/atm/clip.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/net/atm/clip.c b/net/atm/clip.c
index 32c41b8a803e..b3ab7ddc1185 100644
--- a/net/atm/clip.c
+++ b/net/atm/clip.c
@@ -484,16 +484,8 @@ static int clip_mkip(struct atm_vcc *vcc, int timeout)
484 if (!clip_devs) { 484 if (!clip_devs) {
485 atm_return(vcc, skb->truesize); 485 atm_return(vcc, skb->truesize);
486 kfree_skb(skb); 486 kfree_skb(skb);
487 } else { 487 } else
488 struct net_device *dev = skb->dev;
489 unsigned int len = skb->len;
490
491 skb_get(skb);
492 clip_push(vcc, skb); 488 clip_push(vcc, skb);
493 dev->stats.rx_packets--;
494 dev->stats.rx_bytes -= len;
495 kfree_skb(skb);
496 }
497 } 489 }
498 return 0; 490 return 0;
499} 491}