diff options
Diffstat (limited to 'net/tipc/core.h')
-rw-r--r-- | net/tipc/core.h | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/net/tipc/core.h b/net/tipc/core.h index 1260b053bf25..aefe1869572e 100644 --- a/net/tipc/core.h +++ b/net/tipc/core.h | |||
@@ -269,28 +269,4 @@ static inline struct tipc_msg *buf_msg(struct sk_buff *skb) | |||
269 | 269 | ||
270 | extern struct sk_buff *tipc_buf_acquire(u32 size); | 270 | extern struct sk_buff *tipc_buf_acquire(u32 size); |
271 | 271 | ||
272 | /** | ||
273 | * buf_discard - frees a TIPC message buffer | ||
274 | * @skb: message buffer | ||
275 | * | ||
276 | * Frees a message buffer. If passed NULL, just returns. | ||
277 | */ | ||
278 | |||
279 | static inline void buf_discard(struct sk_buff *skb) | ||
280 | { | ||
281 | kfree_skb(skb); | ||
282 | } | ||
283 | |||
284 | /** | ||
285 | * buf_linearize - convert a TIPC message buffer into a single contiguous piece | ||
286 | * @skb: message buffer | ||
287 | * | ||
288 | * Returns 0 on success. | ||
289 | */ | ||
290 | |||
291 | static inline int buf_linearize(struct sk_buff *skb) | ||
292 | { | ||
293 | return skb_linearize(skb); | ||
294 | } | ||
295 | |||
296 | #endif | 272 | #endif |