summaryrefslogtreecommitdiff
path: root/net/decnet/af_decnet.c
diff options
context:
space:
mode:
authorWei Yongjun <yjwei@cn.fujitsu.com>2009-02-25 03:39:01 +0300
committerDavid S. Miller <davem@davemloft.net>2009-02-27 10:07:36 +0300
commitdb849df63cdc95e0345b1f4bcf8bbfa19ef592b6 (patch)
treeb514c99af60c3e239d0bae2ffa8b5ca740404efd /net/decnet/af_decnet.c
parentf3fbbe0f6f6cbac4c2aa3d71d95e49cf148286d6 (diff)
downloadlinux-db849df63cdc95e0345b1f4bcf8bbfa19ef592b6.tar.xz
decnet: 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 'net/decnet/af_decnet.c')
-rw-r--r--net/decnet/af_decnet.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/decnet/af_decnet.c b/net/decnet/af_decnet.c
index 12bf7d4c16c6..963da86d4ecf 100644
--- a/net/decnet/af_decnet.c
+++ b/net/decnet/af_decnet.c
@@ -2071,8 +2071,7 @@ static int dn_sendmsg(struct kiocb *iocb, struct socket *sock,
}
out:
- if (skb)
- kfree_skb(skb);
+ kfree_skb(skb);
release_sock(sk);