Commit 831cbe24 authored by Andrew Morton's avatar Andrew Morton Committed by James Bottomley

[PATCH] remove the test for null waitqueue in __wake_up()

I've had a warning in there for 4-5 months and it has never triggered.  I
think it's safe to remove this test.
parent a802b873
...@@ -1427,9 +1427,6 @@ void __wake_up(wait_queue_head_t *q, unsigned int mode, int nr_exclusive) ...@@ -1427,9 +1427,6 @@ void __wake_up(wait_queue_head_t *q, unsigned int mode, int nr_exclusive)
{ {
unsigned long flags; unsigned long flags;
if (unlikely(!q))
return;
spin_lock_irqsave(&q->lock, flags); spin_lock_irqsave(&q->lock, flags);
__wake_up_common(q, mode, nr_exclusive, 0); __wake_up_common(q, mode, nr_exclusive, 0);
spin_unlock_irqrestore(&q->lock, flags); spin_unlock_irqrestore(&q->lock, flags);
......
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