diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/tipc/core.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/tipc/core.h b/net/tipc/core.h index 3fe9b70331d9..3229d29e352a 100644 --- a/net/tipc/core.h +++ b/net/tipc/core.h | |||
@@ -334,8 +334,7 @@ static inline struct sk_buff *buf_acquire(u32 size) | |||
334 | 334 | ||
335 | static inline void buf_discard(struct sk_buff *skb) | 335 | static inline void buf_discard(struct sk_buff *skb) |
336 | { | 336 | { |
337 | if (likely(skb != NULL)) | 337 | kfree_skb(skb); |
338 | kfree_skb(skb); | ||
339 | } | 338 | } |
340 | 339 | ||
341 | #endif | 340 | #endif |