]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Revert "Add Coverity-only check to pacify it (CID #1604609)"
authorAlan T. DeKok <aland@freeradius.org>
Fri, 9 Aug 2024 15:09:41 +0000 (11:09 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 9 Aug 2024 15:09:41 +0000 (11:09 -0400)
This reverts commit aa37659f220f4d0a338ab98ad4fd3110a6082fdf.

src/lib/util/event.c

index 37f9e748c5a5b2dce4884885a661cd26859a7608..5785a0ea1a098b4c8063f6c111014ab8e48dc65a 100644 (file)
@@ -497,14 +497,6 @@ static void event_fd_func_index_build(fr_event_func_map_t *map)
                         */
                        while ((pos = fr_high_bit_pos(fflags))) {
                                pos -= 1;
-#ifdef __COVERITY__
-                               /*
-                                *      Coverity somehow doesn't realize that the loop
-                                *      condition keeps the decrement from underflowing.
-                                *      This Coverity-only check should reassure it.
-                                */
-                               if (pos >= high) return;
-#endif
                                map->ev_to_func[pos] = entry;
                                fflags &= ~(1 << pos);
                        }