commit | c15fc199b3757496325c4855662fad89bd1efdad | [log] [tgz] |
---|---|---|
author | Miaohe Lin <linmiaohe@huawei.com> | Sat Aug 01 17:30:23 2020 +0800 |
committer | David S. Miller <davem@davemloft.net> | Mon Aug 03 15:38:31 2020 -0700 |
tree | acdefdaa5afa66f613617cb362fd6fe6a23753c7 | |
parent | 8340303670d895407ab02885f1fc5a38cc7b044f [diff] |
net: Use __skb_pagelen() directly in skb_cow_data() 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> Signed-off-by: David S. Miller <davem@davemloft.net>