Browse Source

[Fix] Remove bogus G_LIKELY

tags/3.1
Vsevolod Stakhov 2 years ago
parent
commit
0d0e9a7046
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/libcryptobox/cryptobox.c

+ 2
- 2
src/libcryptobox/cryptobox.c View File

rspamd_cryptobox_fast_hash_update (rspamd_cryptobox_fast_hash_state_t *st, rspamd_cryptobox_fast_hash_update (rspamd_cryptobox_fast_hash_state_t *st,
const void *data, gsize len) 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; t1ha_context_t *rst = (t1ha_context_t *) st->opaque;
t1ha2_update (rst, data, len); t1ha2_update (rst, data, len);
} }
{ {
guint64 ret; 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; t1ha_context_t *rst = (t1ha_context_t *) st->opaque;


return t1ha2_final (rst, NULL); return t1ha2_final (rst, NULL);

Loading…
Cancel
Save