Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ab1a6926 authored by Andy Grover's avatar Andy Grover
Browse files

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: default avatarAndy Grover <andy.grover@oracle.com>
parent cf4b7389
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -406,7 +406,6 @@ 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);
}
EXPORT_SYMBOL_GPL(rds_message_unmapped);