kfree_skb already checks for skb existence - remove redundant check from nf_conntrack_put_reasm. Phil Signed-off-by: Phil Oester <kernel@xxxxxxxxxxxx>
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index a7393ad..3da70ba 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h @@ -2604,8 +2604,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