Re: [PATCH] net: Use __skb_pagelen() directly in skb_cow_data()

2020-08-03 Thread David Miller
From: linmiaohe Date: Sat, 1 Aug 2020 17:30:23 +0800 > From: Miaohe Lin > > In fact, skb_pagelen() - skb_headlen() is equal to __skb_pagelen(), use it > directly to avoid unnecessary skb_headlen() call. > > Also fix the CHECK note of checkpatch.pl: > Comparison to NULL could be written "!_

[PATCH] net: Use __skb_pagelen() directly in skb_cow_data()

2020-08-01 Thread linmiaohe
From: Miaohe Lin In fact, skb_pagelen() - skb_headlen() is equal to __skb_pagelen(), use it directly to avoid unnecessary skb_headlen() call. Also fix the CHECK note of checkpatch.pl: Comparison to NULL could be written "!__pskb_pull_tail" Signed-off-by: Miaohe Lin --- net/core/skbuff.c |