]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
threads: cleaner code with one instruction per line
authorPhilippe Antoine <pantoine@oisf.net>
Wed, 6 Jul 2022 13:27:10 +0000 (15:27 +0200)
committerVictor Julien <vjulien@oisf.net>
Wed, 27 Jul 2022 20:17:39 +0000 (22:17 +0200)
As reported by Shchelk

src/tm-threads.c

index 80915f33dd2003bd0722c9789ea7895112ff3f7a..7bd6cfa8bcb519c3c524e6f6142914a0b1119067 100644 (file)
@@ -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;
                     }
                 }
             }