summaryrefslogtreecommitdiff
path: root/net/unix
diff options
context:
space:
mode:
authorWei Yongjun <yjwei@cn.fujitsu.com>2009-02-25 03:32:45 +0300
committerDavid S. Miller <davem@davemloft.net>2009-02-27 10:07:34 +0300
commit40d44446cf10d9d118e8f0132c94e1f25ea3be97 (patch)
tree5bf098f45d53c955792af9f85eda1ec123b1b3c4 /net/unix
parent86dc1ad2be17a7436ee8c6799f6b55e5a5b930f4 (diff)
downloadlinux-40d44446cf10d9d118e8f0132c94e1f25ea3be97.tar.xz
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 d1b89820ab4f..baac91049b0e 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)