streaming: remove dead code

As reported by Coverity Scan.
pull/8444/head
Victor Julien 2 years ago
parent 7b18b9c01c
commit f41646a012

@ -1063,10 +1063,7 @@ static StreamingBufferRegion *FindLargestRegionForOffset(const StreamingBuffer *
if (!RegionsIntersect(sb, cfg, r, offset, data_re))
return candidate;
if (candidate == NULL) {
candidate = r;
SCLogDebug("candidate %p", candidate);
} else if (r->buf_size > candidate->buf_size) {
if (r->buf_size > candidate->buf_size) {
SCLogDebug("candidate %p as size %u > %u", candidate, r->buf_size, candidate->buf_size);
candidate = r;
}

Loading…
Cancel
Save