- list_for_each_entry_safe(loop_msg, tmp_msg, &msg_list, list) {
- /* move event with expected sequence to the exec list */
- if (loop_msg->seqnum == expected_seqnum) {
- msg_move_exec(&loop_msg->list);
- expected_seqnum++;
- dbg("moved seq %d to exec, next expected is %d",
- loop_msg->seqnum, expected_seqnum);
- continue;
- }
-
- /* move event with expired timeout to the exec list */
- msg_age = time(NULL) - loop_msg->queue_time;
- if (msg_age > EVENT_TIMEOUT_SEC-1) {
- msg_move_exec(&loop_msg->list);
- expected_seqnum = loop_msg->seqnum+1;
- dbg("moved seq %d to exec, reset next expected to %d",
- loop_msg->seqnum, expected_seqnum);
- goto recheck;
- } else {
- break;
- }
+ list_for_each_entry_safe(loop_msg, tmp_msg, &msg_list, list) {
+ /* move event with expected sequence to the exec list */
+ if (loop_msg->seqnum == expected_seqnum) {
+ msg_move_exec(loop_msg);
+ continue;