Skip to content

Commit

Permalink
6lowpan: remove unused function
Browse files Browse the repository at this point in the history
This patch removes the unused function.

Signed-off-by: Varka Bhadram <varkab@cdac.in>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
  • Loading branch information
Varka Bhadram authored and Marcel Holtmann committed Jul 30, 2014
1 parent 267ca9f commit 233351b
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions include/net/6lowpan.h
Original file line number Diff line number Diff line change
Expand Up @@ -240,17 +240,6 @@ static inline int lowpan_fetch_skb_u8(struct sk_buff *skb, u8 *val)
return 0;
}

static inline int lowpan_fetch_skb_u16(struct sk_buff *skb, u16 *val)
{
if (unlikely(!pskb_may_pull(skb, 2)))
return -EINVAL;

*val = (skb->data[0] << 8) | skb->data[1];
skb_pull(skb, 2);

return 0;
}

static inline bool lowpan_fetch_skb(struct sk_buff *skb,
void *data, const unsigned int len)
{
Expand Down

0 comments on commit 233351b

Please sign in to comment.