From: Victor Julien Date: Mon, 11 Nov 2019 19:57:35 +0000 (+0100) Subject: threading/threadvars: remove unused 'prev' field X-Git-Tag: suricata-6.0.0-beta1~793 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=071b753e8436e680e12c5b06b4144f67c84bff95;p=thirdparty%2Fsuricata.git threading/threadvars: remove unused 'prev' field --- diff --git a/src/threadvars.h b/src/threadvars.h index 0caa459cc0..a4cd49b025 100644 --- a/src/threadvars.h +++ b/src/threadvars.h @@ -118,7 +118,6 @@ typedef struct ThreadVars_ { SCCtrlCondT *ctrl_cond; struct ThreadVars_ *next; - struct ThreadVars_ *prev; } ThreadVars; /** Thread setup flags: */ diff --git a/src/tm-threads.c b/src/tm-threads.c index 912d110146..2d01fd13ad 100644 --- a/src/tm-threads.c +++ b/src/tm-threads.c @@ -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; }