diff --git a/src/runmode-erf-dag.c b/src/runmode-erf-dag.c index cf813bd29c..686d22d8b1 100644 --- a/src/runmode-erf-dag.c +++ b/src/runmode-erf-dag.c @@ -162,8 +162,6 @@ int RunModeErfDagAuto(DetectEngineCtx *de_ctx) int thread; for (thread = 0; thread < thread_max; thread++) { snprintf(tname, sizeof(tname), "Detect%"PRIu16, thread+1); - if (tname == NULL) - break; char *thread_name = SCStrdup(tname); SCLogDebug("Assigning %s affinity to cpu %u", thread_name, cpu); diff --git a/src/runmode-erf-file.c b/src/runmode-erf-file.c index 7db2718847..95b343501e 100644 --- a/src/runmode-erf-file.c +++ b/src/runmode-erf-file.c @@ -151,8 +151,6 @@ int RunModeErfFileAuto(DetectEngineCtx *de_ctx) int thread; for (thread = 0; thread < thread_max; thread++) { snprintf(tname, sizeof(tname), "Detect%"PRIu16, thread+1); - if (tname == NULL) - break; char *thread_name = SCStrdup(tname); SCLogDebug("Assigning %s affinity to cpu %u", thread_name, cpu); diff --git a/src/runmode-ipfw.c b/src/runmode-ipfw.c index 7980efcfc4..c54ecc1693 100644 --- a/src/runmode-ipfw.c +++ b/src/runmode-ipfw.c @@ -183,8 +183,6 @@ int RunModeIpsIPFWAuto(DetectEngineCtx *de_ctx) int thread; for (thread = 0; thread < thread_max; thread++) { snprintf(tname, sizeof(tname), "Detect%"PRIu16, thread+1); - if (tname == NULL) - break; char *thread_name = SCStrdup(tname); SCLogDebug("Assigning %s affinity to cpu %u", thread_name, cpu); diff --git a/src/runmode-nfq.c b/src/runmode-nfq.c index 29a0e0b3f8..32f2dfa8f4 100644 --- a/src/runmode-nfq.c +++ b/src/runmode-nfq.c @@ -172,8 +172,6 @@ int RunModeIpsNFQAuto(DetectEngineCtx *de_ctx) for (thread = 0; thread < thread_max; thread++) { memset(tname, 0, sizeof(tname)); snprintf(tname, sizeof(tname), "Detect%"PRIu16, thread+1); - if (tname == NULL) - break; char *thread_name = SCStrdup(tname); SCLogDebug("Assigning %s affinity", thread_name); diff --git a/src/runmode-pcap-file.c b/src/runmode-pcap-file.c index 05c7e95554..0913206727 100644 --- a/src/runmode-pcap-file.c +++ b/src/runmode-pcap-file.c @@ -337,8 +337,6 @@ int RunModeFilePcapAuto(DetectEngineCtx *de_ctx) int thread; for (thread = 0; thread < thread_max; thread++) { snprintf(tname, sizeof(tname), "Detect%"PRIu16, thread+1); - if (tname == NULL) - break; char *thread_name = SCStrdup(tname); SCLogDebug("Assigning %s affinity to cpu %u", thread_name, cpu); diff --git a/src/runmode-pcap.c b/src/runmode-pcap.c index 7dd5a89ebd..ac5df8e49d 100644 --- a/src/runmode-pcap.c +++ b/src/runmode-pcap.c @@ -313,8 +313,6 @@ int RunModeIdsPcapAuto(DetectEngineCtx *de_ctx) for (thread = 0; thread < thread_max; thread++) { snprintf(tname, sizeof(tname),"Detect%"PRIu16, thread+1); - if (tname == NULL) - break; char *thread_name = SCStrdup(tname); SCLogDebug("Assigning %s affinity to cpu %u", thread_name, cpu); diff --git a/src/runmode-pfring.c b/src/runmode-pfring.c index 767be26438..a3e01f8773 100644 --- a/src/runmode-pfring.c +++ b/src/runmode-pfring.c @@ -202,8 +202,6 @@ int RunModeIdsPfringAuto(DetectEngineCtx *de_ctx) int thread; for (thread = 0; thread < thread_max; thread++) { snprintf(tname, sizeof(tname), "Detect%"PRIu16, thread+1); - if (tname == NULL) - break; char *thread_name = SCStrdup(tname); SCLogDebug("Assigning %s affinity to cpu %u", thread_name, cpu);