summaryrefslogtreecommitdiffstats
path: root/net/unix
diff options
context:
space:
mode:
authorWei Yongjun <yjwei@cn.fujitsu.com>2009-02-25 00:32:45 +0000
committerDavid S. Miller <davem@davemloft.net>2009-02-26 23:07:34 -0800
commit40d44446cf10d9d118e8f0132c94e1f25ea3be97 (patch)
tree5bf098f45d53c955792af9f85eda1ec123b1b3c4 /net/unix
parent86dc1ad2be17a7436ee8c6799f6b55e5a5b930f4 (diff)
unix: 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/unix')
-rw-r--r--net/unix/af_unix.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c
index d1b89820ab4..baac91049b0 100644
--- a/net/unix/af_unix.c
+++ b/net/unix/af_unix.c
@@ -1178,8 +1178,7 @@ out_unlock:
unix_state_unlock(other);
out:
- if (skb)
- kfree_skb(skb);
+ kfree_skb(skb);
if (newsk)
unix_release_sock(newsk, 0);
if (other)