diff options
author | Varka Bhadram <varkab@cdac.in> | 2014-07-30 01:35:12 -0400 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2014-07-30 13:28:41 -0400 |
commit | 233351bd66f1fadc4a69f350a9a4422c2e3d308d (patch) | |
tree | e4a2b53176b650de12e43b62835f8af97c38b000 /include/net/6lowpan.h | |
parent | 267ca9fefca70817ca3283f5ae564ee385e742b6 (diff) |
6lowpan: remove unused function
This patch removes the unused function.
Signed-off-by: Varka Bhadram <varkab@cdac.in>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'include/net/6lowpan.h')
-rw-r--r-- | include/net/6lowpan.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/include/net/6lowpan.h b/include/net/6lowpan.h index 614920a39bf2..d184df1d0d41 100644 --- a/include/net/6lowpan.h +++ b/include/net/6lowpan.h | |||
@@ -240,17 +240,6 @@ static inline int lowpan_fetch_skb_u8(struct sk_buff *skb, u8 *val) | |||
240 | return 0; | 240 | return 0; |
241 | } | 241 | } |
242 | 242 | ||
243 | static inline int lowpan_fetch_skb_u16(struct sk_buff *skb, u16 *val) | ||
244 | { | ||
245 | if (unlikely(!pskb_may_pull(skb, 2))) | ||
246 | return -EINVAL; | ||
247 | |||
248 | *val = (skb->data[0] << 8) | skb->data[1]; | ||
249 | skb_pull(skb, 2); | ||
250 | |||
251 | return 0; | ||
252 | } | ||
253 | |||
254 | static inline bool lowpan_fetch_skb(struct sk_buff *skb, | 243 | static inline bool lowpan_fetch_skb(struct sk_buff *skb, |
255 | void *data, const unsigned int len) | 244 | void *data, const unsigned int len) |
256 | { | 245 | { |