lkml.org 
[lkml]   [2020]   [Aug]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] net: Use __skb_pagelen() directly in skb_cow_data()
From
From: linmiaohe <linmiaohe@huawei.com>
Date: Sat, 1 Aug 2020 17:30:23 +0800

> From: Miaohe Lin <linmiaohe@huawei.com>
>
> 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 <linmiaohe@huawei.com>

Applied.

\
 
 \ /
  Last update: 2020-08-04 00:39    [W:0.032 / U:0.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site