]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
threading/threadvars: remove unused 'prev' field
authorVictor Julien <victor@inliniac.net>
Mon, 11 Nov 2019 19:57:35 +0000 (20:57 +0100)
committerVictor Julien <victor@inliniac.net>
Fri, 7 Feb 2020 14:43:10 +0000 (15:43 +0100)
src/threadvars.h
src/tm-threads.c

index 0caa459cc0f6b88ac51b182f5c6fb5f01c7e163f..a4cd49b02575cde8349d1b6583836574637714da 100644 (file)
@@ -118,7 +118,6 @@ typedef struct ThreadVars_ {
     SCCtrlCondT *ctrl_cond;
 
     struct ThreadVars_ *next;
-    struct ThreadVars_ *prev;
 } ThreadVars;
 
 /** Thread setup flags: */
index 912d11014605ed7f2843683f925b6a2c98b63cd0..2d01fd13adeba1eea229962a51497b577f86aba9 100644 (file)
@@ -1319,7 +1319,6 @@ void TmThreadAppend(ThreadVars *tv, int type)
     if (tv_root[type] == NULL) {
         tv_root[type] = tv;
         tv->next = NULL;
-        tv->prev = NULL;
 
         SCMutexUnlock(&tv_root_lock);
 
@@ -1331,7 +1330,6 @@ void TmThreadAppend(ThreadVars *tv, int type)
     while (t) {
         if (t->next == NULL) {
             t->next = tv;
-            tv->prev = t;
             tv->next = NULL;
             break;
         }