]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
flow: remove unneeded else
authorShivani Bhardwaj <shivani@oisf.net>
Tue, 21 May 2024 11:48:21 +0000 (17:18 +0530)
committerVictor Julien <victor@inliniac.net>
Wed, 22 May 2024 04:45:11 +0000 (06:45 +0200)
src/flow-hash.c

index 59aad096b87f8cd825f385f84c6b8b54ab39de88..3bec26f1761d9aa97e53d8e875cd7526a39fc29e 100644 (file)
@@ -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);
 }
 
 /**