From ba239a8610caa94d677bb2eb95d833239466f98b Mon Sep 17 00:00:00 2001 From: henri Date: Wed, 6 Nov 2013 18:52:06 +0000 Subject: [PATCH] Get rid of a level of indentation --- nsock/src/nsock_core.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/nsock/src/nsock_core.c b/nsock/src/nsock_core.c index 7267453ac..61859242f 100644 --- a/nsock/src/nsock_core.c +++ b/nsock/src/nsock_core.c @@ -1206,13 +1206,14 @@ void process_expired_events(mspool *nsp) { break; nse = container_of(hnode, msevent, expire); - if (msevent_timedout(nse)) { - gh_heap_pop(&nsp->expirables); - process_event(nsp, NULL, nse, EV_NONE); - assert(nse->event_done); - update_first_events(nse); - msevent_unref(nsp, nse); - } else break; + if (!msevent_timedout(nse)) + break; + + gh_heap_pop(&nsp->expirables); + process_event(nsp, NULL, nse, EV_NONE); + assert(nse->event_done); + update_first_events(nse); + msevent_unref(nsp, nse); } }