Re: [PATCH net-next] net: caif: use skb helpers instead of open-coding them

2019-02-17 Thread David Miller
From: Jann Horn Date: Thu, 14 Feb 2019 22:35:47 +0100 > 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

Re: [PATCH net-next] net: caif: use skb helpers instead of open-coding them

2019-02-14 Thread Jann Horn
On Thu, Feb 14, 2019 at 10:35 PM Jann Horn wrote: > 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

[PATCH net-next] net: caif: use skb helpers instead of open-coding them

2019-02-14 Thread Jann Horn
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