From: Li RongQing Date: Tue, 18 Sep 2012 16:53:21 +0000 (+0000) Subject: net/core: fix comment in skb_try_coalesce X-Git-Tag: upstream/snapshot3+hdmi~6666^2~19 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8ea853fd0b721f14eacff1a5b364fe3e60d2dd82;hp=ed3770a9cd5764a575b83810ea679bbff2b03082;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git net/core: fix comment in skb_try_coalesce It should be the skb which is not cloned Signed-off-by: Li RongQing Acked-by: Eric Dumazet Signed-off-by: David S. Miller --- diff --git a/net/core/skbuff.c b/net/core/skbuff.c index fe00d12..e33ebae 100644 --- a/net/core/skbuff.c +++ b/net/core/skbuff.c @@ -3502,7 +3502,9 @@ bool skb_try_coalesce(struct sk_buff *to, struct sk_buff *from, if (!skb_cloned(from)) skb_shinfo(from)->nr_frags = 0; - /* if the skb is cloned this does nothing since we set nr_frags to 0 */ + /* if the skb is not cloned this does nothing + * since we set nr_frags to 0. + */ for (i = 0; i < skb_shinfo(from)->nr_frags; i++) skb_frag_ref(from, i);