mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
ppp: remove some pointless conditionals before kfree_skb()
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>
This commit is contained in:
parent
875b48297b
commit
1d2f8c9507
3 changed files with 5 additions and 10 deletions
|
@ -233,11 +233,9 @@ ppp_asynctty_close(struct tty_struct *tty)
|
|||
tasklet_kill(&ap->tsk);
|
||||
|
||||
ppp_unregister_channel(&ap->chan);
|
||||
if (ap->rpkt)
|
||||
kfree_skb(ap->rpkt);
|
||||
kfree_skb(ap->rpkt);
|
||||
skb_queue_purge(&ap->rqueue);
|
||||
if (ap->tpkt)
|
||||
kfree_skb(ap->tpkt);
|
||||
kfree_skb(ap->tpkt);
|
||||
kfree(ap);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue