From: Shivani Bhardwaj Date: Tue, 16 Jan 2024 08:39:57 +0000 (+0530) Subject: detect/alert: remove unnecessary else X-Git-Tag: suricata-8.0.0-beta1~1831 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=778820ba06d35ce1f736b3165f1ae7f4f498845b;p=thirdparty%2Fsuricata.git detect/alert: remove unnecessary else --- diff --git a/src/detect-engine-alert.c b/src/detect-engine-alert.c index f9cbed1564..f9f12f9b78 100644 --- a/src/detect-engine-alert.c +++ b/src/detect-engine-alert.c @@ -319,8 +319,7 @@ static int AlertQueueSortHelper(const void *a, const void *b) const PacketAlert *pa1 = b; if (pa1->num == pa0->num) return pa0->tx_id < pa1->tx_id ? 1 : -1; - else - return pa0->num > pa1->num ? 1 : -1; + return pa0->num > pa1->num ? 1 : -1; } /** \internal