mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
6lowpan: remove lowpan_fetch_skb_u8
This patch removes the lowpan_fetch_skb_u8 function for getting the iphc bytes. Instead we using the generic which has a len parameter to tell the amount of bytes to fetch. Signed-off-by: Alexander Aring <[email protected]> Acked-by: Jukka Rissanen <[email protected]> Signed-off-by: Marcel Holtmann <[email protected]>
This commit is contained in:
parent
8911d7748c
commit
478208e3b9
2 changed files with 16 additions and 15 deletions
|
|
@ -265,8 +265,8 @@ int lowpan_header_decompress(struct sk_buff *skb, const struct net_device *dev,
|
|||
raw_dump_table(__func__, "raw skb data dump uncompressed",
|
||||
skb->data, skb->len);
|
||||
|
||||
if (lowpan_fetch_skb_u8(skb, &iphc0) ||
|
||||
lowpan_fetch_skb_u8(skb, &iphc1))
|
||||
if (lowpan_fetch_skb(skb, &iphc0, sizeof(iphc0)) ||
|
||||
lowpan_fetch_skb(skb, &iphc1, sizeof(iphc1)))
|
||||
return -EINVAL;
|
||||
|
||||
/* another if the CID flag is set */
|
||||
|
|
|
|||
Loading…
Reference in a new issue