threads: cleaner code with one instruction per line

As reported by Shchelk
pull/7652/head
Philippe Antoine 3 years ago committed by Victor Julien
parent 9fa0033966
commit adeb1fdfc3

@ -175,9 +175,9 @@ static int TmThreadTimeoutLoop(ThreadVars *tv, TmSlot *s)
Packet *p = PacketDequeue(tv->stream_pq);
SCMutexUnlock(&tv->stream_pq->mutex_q);
if (likely(p)) {
if ((r = TmThreadsSlotProcessPkt(tv, fw_slot, p) != TM_ECODE_OK)) {
if (r == TM_ECODE_FAILED)
break;
r = TmThreadsSlotProcessPkt(tv, fw_slot, p);
if (r == TM_ECODE_FAILED) {
break;
}
}
}

Loading…
Cancel
Save