netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] skbuff: remove pointless conditional before kfree_skb()
@ 2012-08-28 13:10 Wei Yongjun
  2012-08-28 14:12 ` Eric Dumazet
  0 siblings, 1 reply; 7+ messages in thread
From: Wei Yongjun @ 2012-08-28 13:10 UTC (permalink / raw)
  To: davem; +Cc: yongjun_wei, netdev

From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>

Remove pointless conditional before kfree_skb().

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
---
 include/linux/skbuff.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
index 7632c87..0b846d9 100644
--- a/include/linux/skbuff.h
+++ b/include/linux/skbuff.h
@@ -2464,8 +2464,7 @@ static inline void nf_conntrack_get_reasm(struct sk_buff *skb)
 }
 static inline void nf_conntrack_put_reasm(struct sk_buff *skb)
 {
-	if (skb)
-		kfree_skb(skb);
+	kfree_skb(skb);
 }
 #endif
 #ifdef CONFIG_BRIDGE_NETFILTER

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-08-30 17:39 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-28 13:10 [PATCH] skbuff: remove pointless conditional before kfree_skb() Wei Yongjun
2012-08-28 14:12 ` Eric Dumazet
2012-08-28 19:17   ` Flavio Leitner
2012-08-28 20:09     ` Eric Dumazet
2012-08-28 20:39       ` Flavio Leitner
2012-08-29  3:38         ` Eric Dumazet
2012-08-30 17:39           ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).