]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Remove bogus G_LIKELY
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 25 Sep 2021 11:22:43 +0000 (12:22 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 25 Sep 2021 11:22:43 +0000 (12:22 +0100)
src/libcryptobox/cryptobox.c

index e592eccdfe1b45cd8f523f9c5c67ea4e01373bb9..3139bb1c7ea26a1ea098e6d20b124aa9d63e984a 100644 (file)
@@ -1544,7 +1544,7 @@ void
 rspamd_cryptobox_fast_hash_update (rspamd_cryptobox_fast_hash_state_t *st,
                const void *data, gsize len)
 {
-       if (G_LIKELY (st->type) == RSPAMD_CRYPTOBOX_T1HA) {
+       if (st->type == RSPAMD_CRYPTOBOX_T1HA) {
                t1ha_context_t *rst = (t1ha_context_t *) st->opaque;
                t1ha2_update (rst, data, len);
        }
@@ -1614,7 +1614,7 @@ rspamd_cryptobox_fast_hash_final (rspamd_cryptobox_fast_hash_state_t *st)
 {
        guint64 ret;
 
-       if (G_LIKELY (st->type) == RSPAMD_CRYPTOBOX_T1HA) {
+       if (st->type == RSPAMD_CRYPTOBOX_T1HA) {
                t1ha_context_t *rst = (t1ha_context_t *) st->opaque;
 
                return t1ha2_final (rst, NULL);