diff options
author | Jann Horn <jannh@google.com> | 2019-02-14 22:35:47 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-02-17 11:01:17 -0800 |
commit | 1eb00162f86abda9535de5cbaf6e168f7747ee90 (patch) | |
tree | 7e3fa360da5809be081b1e454461204514e7d355 /net/ipv6/xfrm6_mode_beet.c | |
parent | 6a79507cfe94c7729207659501ff88914b3eb198 (diff) | |
download | lwn-1eb00162f86abda9535de5cbaf6e168f7747ee90.tar.gz lwn-1eb00162f86abda9535de5cbaf6e168f7747ee90.zip |
net: caif: use skb helpers instead of open-coding them
Use existing skb_put_data() and skb_trim() instead of open-coding them,
with the skb_put_data() first so that logically, `skb` still contains the
data to be copied in its data..tail area when skb_put_data() reads it.
This change on its own is a cleanup, and it is also necessary for potential
future integration of skbuffs with things like KASAN.
Signed-off-by: Jann Horn <jannh@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/xfrm6_mode_beet.c')
0 files changed, 0 insertions, 0 deletions