From: Shivani Bhardwaj Date: Tue, 21 May 2024 11:48:21 +0000 (+0530) Subject: flow: remove unneeded else X-Git-Tag: suricata-8.0.0-beta1~1291 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c751dba73bd4d76ddf14b46b544418190ffa908;p=thirdparty%2Fsuricata.git flow: remove unneeded else --- diff --git a/src/flow-hash.c b/src/flow-hash.c index 59aad096b8..3bec26f176 100644 --- a/src/flow-hash.c +++ b/src/flow-hash.c @@ -530,9 +530,8 @@ static inline int FlowCompare(Flow *f, const Packet *p) return FlowCompareICMPv4(f, p); } else if (PacketIsESP(p)) { return FlowCompareESP(f, p); - } else { - return CmpFlowPacket(f, p); } + return CmpFlowPacket(f, p); } /**