]> sourceware.org Git - systemtap.git/commit
Simplify init_backlog function to avoid coverity BAD_SHIFT errors
authorWilliam Cohen <wcohen@redhat.com>
Fri, 28 Jul 2023 17:26:10 +0000 (13:26 -0400)
committerWilliam Cohen <wcohen@redhat.com>
Mon, 7 Aug 2023 18:12:48 +0000 (14:12 -0400)
commit6f93604feccacfa1ee4653c0e415ec37ef9ff384
tree690f9d094b24af7b3b1dc67448546e5969168230
parentf6fa4525b8f3bf99af58cfcf237e2aa758091277
Simplify init_backlog function to avoid coverity BAD_SHIFT errors

The init_backlog function determines the power of two sized memory
allocation that would have at least fnum_max elements.  Reworked the
code to make it clearer to the coverity analyzer what it is doing.
Rather than overshooting the desired order value and then adjusting it
down by one the while loop has been revised to exit when the order is
the correct value.
staprun/relay.c
This page took 0.026096 seconds and 5 git commands to generate.