On Thu, Feb 23, 2006 at 02:21:46PM +0100, Sven Schuster wrote:
> 
> static inline void kfree_skb(struct sk_buff *skb)
> {
>       if (unlikely(!skb))
>               return;
>       _kfree_skb(skb);
> }
> 
> This way the kernel with the new inlined kfree_skb should still become
> smaller while not calling the un-inlined _kfree_skb if skb is
> NULL...?? (_should_ become smaller is a claim I make without any
> proof, sorry...)

This is pointless because most callers of kfree_skb expect skb to be
non-NULL.
-- 
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <[EMAIL PROTECTED]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to