aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ppp_async.c
diff options
context:
space:
mode:
authorWei Yongjun <yjwei@cn.fujitsu.com>2009-02-24 19:16:08 -0500
committerDavid S. Miller <davem@davemloft.net>2009-02-27 02:07:30 -0500
commit1d2f8c950745f47f2937742eb886cffee439b754 (patch)
tree838292120aa46c3f3e46540f042354c034683739 /drivers/net/ppp_async.c
parent875b48297b8ab2f402680821da47d23bd6bddc55 (diff)
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>
Diffstat (limited to 'drivers/net/ppp_async.c')
-rw-r--r--drivers/net/ppp_async.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/ppp_async.c b/drivers/net/ppp_async.c
index 6567fabd2e13..5de6fedd1d76 100644
--- a/drivers/net/ppp_async.c
+++ b/drivers/net/ppp_async.c
@@ -233,11 +233,9 @@ ppp_asynctty_close(struct tty_struct *tty)
233 tasklet_kill(&ap->tsk); 233 tasklet_kill(&ap->tsk);
234 234
235 ppp_unregister_channel(&ap->chan); 235 ppp_unregister_channel(&ap->chan);
236 if (ap->rpkt) 236 kfree_skb(ap->rpkt);
237 kfree_skb(ap->rpkt);
238 skb_queue_purge(&ap->rqueue); 237 skb_queue_purge(&ap->rqueue);
239 if (ap->tpkt) 238 kfree_skb(ap->tpkt);
240 kfree_skb(ap->tpkt);
241 kfree(ap); 239 kfree(ap);
242} 240}
243 241