mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
[SK_BUFF]: Convert skb->end to sk_buff_data_t
Now to convert the last one, skb->data, that will allow many simplifications and removal of some of the offset helpers. Signed-off-by: Arnaldo Carvalho de Melo <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
27a884dc3c
commit
4305b54135
15 changed files with 101 additions and 56 deletions
|
|
@ -785,7 +785,7 @@ static inline struct sk_buff *netlink_trim(struct sk_buff *skb,
|
|||
|
||||
skb_orphan(skb);
|
||||
|
||||
delta = skb->end - skb_tail_pointer(skb);
|
||||
delta = skb->end - skb->tail;
|
||||
if (delta * 2 < skb->truesize)
|
||||
return skb;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue