Suppress useless code.

This code was making a warning for some time now. This patch kills
it.
remotes/origin/master-1.1.x
Eric Leblond 14 years ago
parent 45d5c3ca59
commit 3f75b10f79

@ -327,13 +327,8 @@ void EngineAnalysisFastPattern(Signature *s)
{ {
SigMatch *mpm_sm = NULL; SigMatch *mpm_sm = NULL;
uint32_t fast_pattern = 0; uint32_t fast_pattern = 0;
int sig_has_no_pkt_and_stream_content = 0;
int list_id = 0; int list_id = 0;
if (!SignatureHasPacketContent(s) && !SignatureHasStreamContent(s)) {
sig_has_no_pkt_and_stream_content = 1;
}
for (list_id = 0; list_id < DETECT_SM_LIST_MAX; list_id++) { for (list_id = 0; list_id < DETECT_SM_LIST_MAX; list_id++) {
/* we have no keywords that support fp in this Signature sm list */ /* we have no keywords that support fp in this Signature sm list */
if (!FastPatternSupportEnabledForSigMatchList(list_id)) if (!FastPatternSupportEnabledForSigMatchList(list_id))

Loading…
Cancel
Save