summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
875b482)
Remove some pointless conditionals before kfree_skb().
Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tasklet_kill(&ap->tsk);
ppp_unregister_channel(&ap->chan);
tasklet_kill(&ap->tsk);
ppp_unregister_channel(&ap->chan);
- if (ap->rpkt)
- kfree_skb(ap->rpkt);
skb_queue_purge(&ap->rqueue);
skb_queue_purge(&ap->rqueue);
- if (ap->tpkt)
- kfree_skb(ap->tpkt);
- if (skb)
- kfree_skb(skb);
++ppp->dev->stats.tx_errors;
}
++ppp->dev->stats.tx_errors;
}
ppp->active_filter = NULL;
#endif /* CONFIG_PPP_FILTER */
ppp->active_filter = NULL;
#endif /* CONFIG_PPP_FILTER */
- if (ppp->xmit_pending)
- kfree_skb(ppp->xmit_pending);
+ kfree_skb(ppp->xmit_pending);
ppp_unregister_channel(&ap->chan);
skb_queue_purge(&ap->rqueue);
ppp_unregister_channel(&ap->chan);
skb_queue_purge(&ap->rqueue);
- if (ap->tpkt)
- kfree_skb(ap->tpkt);