diff options
author | Wei Yongjun <yjwei@cn.fujitsu.com> | 2009-02-25 03:16:08 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-02-27 10:07:30 +0300 |
commit | 1d2f8c950745f47f2937742eb886cffee439b754 (patch) | |
tree | 838292120aa46c3f3e46540f042354c034683739 /drivers/net/ppp_synctty.c | |
parent | 875b48297b8ab2f402680821da47d23bd6bddc55 (diff) | |
download | linux-1d2f8c950745f47f2937742eb886cffee439b754.tar.xz |
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_synctty.c')
-rw-r--r-- | drivers/net/ppp_synctty.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ppp_synctty.c b/drivers/net/ppp_synctty.c index 1e892b7b1f8c..3ea791d16b00 100644 --- a/drivers/net/ppp_synctty.c +++ b/drivers/net/ppp_synctty.c @@ -281,8 +281,7 @@ ppp_sync_close(struct tty_struct *tty) ppp_unregister_channel(&ap->chan); skb_queue_purge(&ap->rqueue); - if (ap->tpkt) - kfree_skb(ap->tpkt); + kfree_skb(ap->tpkt); kfree(ap); } |