Commit 39fc68c4 authored by Philippe Gerum's avatar Philippe Gerum
Browse files

evl/wait: remove superfluous checks for list emptiness



Signed-off-by: Philippe Gerum's avatarPhilippe Gerum <rpm@xenomai.org>
parent d851aed2
......@@ -83,11 +83,8 @@ void evl_flush_wait_locked(struct evl_wait_queue *wq, int reason)
trace_evl_wait_flush(wq);
if (!list_empty(&wq->wait_list)) {
list_for_each_entry_safe(waiter, tmp,
&wq->wait_list, wait_next)
evl_wakeup_thread(waiter, T_PEND, reason);
}
list_for_each_entry_safe(waiter, tmp, &wq->wait_list, wait_next)
evl_wakeup_thread(waiter, T_PEND, reason);
}
EXPORT_SYMBOL_GPL(evl_flush_wait_locked);
......
Supports Markdown
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