From: Andy Grover Date: Mon, 29 Mar 2010 23:52:12 +0000 (-0700) Subject: RDS: rds_message_unmapped() doesn't need to check if queue active X-Git-Tag: v2.6.37-rc1~147^2~499^2~58 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ab1a6926f589c51e7a57ce7544d85272c4acc854;p=platform%2Fkernel%2Flinux-exynos.git RDS: rds_message_unmapped() doesn't need to check if queue active If the queue has nobody on it, then wake_up does nothing. Signed-off-by: Andy Grover --- diff --git a/net/rds/message.c b/net/rds/message.c index dd915e3..9122b53 100644 --- a/net/rds/message.c +++ b/net/rds/message.c @@ -406,8 +406,7 @@ void rds_message_wait(struct rds_message *rm) void rds_message_unmapped(struct rds_message *rm) { clear_bit(RDS_MSG_MAPPED, &rm->m_flags); - if (waitqueue_active(&rds_message_flush_waitq)) - wake_up(&rds_message_flush_waitq); + wake_up(&rds_message_flush_waitq); } EXPORT_SYMBOL_GPL(rds_message_unmapped);