From 52f568fe0c0050bfb9f9c0580e10674d919334f2 Mon Sep 17 00:00:00 2001 From: Andrew Morton <akpm@digeo.com> Date: Tue, 6 May 2003 11:41:40 -0700 Subject: [PATCH] [NET]: Remove duplicated alloc_skb debug check. --- net/core/skbuff.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/net/core/skbuff.c b/net/core/skbuff.c index c6d5e32b6a5b..cccc6d75bdc9 100644 --- a/net/core/skbuff.c +++ b/net/core/skbuff.c @@ -126,9 +126,6 @@ struct sk_buff *alloc_skb(unsigned int size, int gfp_mask) struct sk_buff *skb; u8 *data; - if (gfp_mask & __GFP_WAIT) - might_sleep(); - /* Get the HEAD */ skb = kmem_cache_alloc(skbuff_head_cache, gfp_mask & ~__GFP_DMA); -- 2.30.9