Commit 52f568fe authored by Andrew Morton's avatar Andrew Morton Committed by David S. Miller

[NET]: Remove duplicated alloc_skb debug check.

parent 74447771
...@@ -126,9 +126,6 @@ struct sk_buff *alloc_skb(unsigned int size, int gfp_mask) ...@@ -126,9 +126,6 @@ struct sk_buff *alloc_skb(unsigned int size, int gfp_mask)
struct sk_buff *skb; struct sk_buff *skb;
u8 *data; u8 *data;
if (gfp_mask & __GFP_WAIT)
might_sleep();
/* Get the HEAD */ /* Get the HEAD */
skb = kmem_cache_alloc(skbuff_head_cache, skb = kmem_cache_alloc(skbuff_head_cache,
gfp_mask & ~__GFP_DMA); gfp_mask & ~__GFP_DMA);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment