From: James Jones Date: Thu, 26 Jan 2023 15:04:57 +0000 (-0600) Subject: Remove dead code (CID #1519001) (#4854) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9926205dd842c94db735b45fbad12244efb5e85;p=thirdparty%2Ffreeradius-server.git Remove dead code (CID #1519001) (#4854) _event_build_indexes() always returns 0, so fr_atexit_global_once_ret() will always set ret to zero, and hence ret won't be negative. --- diff --git a/src/lib/util/event.c b/src/lib/util/event.c index 653b50d79e1..a08c90ca968 100644 --- a/src/lib/util/event.c +++ b/src/lib/util/event.c @@ -2793,7 +2793,6 @@ fr_event_list_t *fr_event_list_alloc(TALLOC_CTX *ctx, fr_event_status_cb_t statu * function is called. */ fr_atexit_global_once_ret(&ret, _event_build_indexes, _event_free_indexes, NULL); - if (unlikely(ret < 0)) return NULL; el = talloc_zero(ctx, fr_event_list_t); if (!fr_cond_assert(el)) {