Skip to contentSkip to conversation

unix: remove some pointless conditionals before kfree_skb()

PATCH Applied Wei Yongjun 2 participants 2 messages Feb 25, 2009 – Feb 27, 2009

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 unix: remove some pointless conditionals before kfree_skb()

Remove some pointless conditionals before kfree_skb().

---
 net/unix/af_unix.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
net/unix/af_unix.c +1 -2
index d1b8982..baac910 100644
@@ -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)
Signature · 1 line
1.5.3.8