diff --git a/src/discof/forest/fd_forest.c b/src/discof/forest/fd_forest.c index 7687a2ce011..9f8381091ff 100644 --- a/src/discof/forest/fd_forest.c +++ b/src/discof/forest/fd_forest.c @@ -175,7 +175,6 @@ fd_forest_init( fd_forest_t * forest, ulong root_slot ) { /* Sanity checks. */ - FD_TEST( root_ele ); FD_TEST( root_ele == fd_forest_frontier_ele_query( frontier, &root_slot, NULL, pool )); FD_TEST( root_ele->slot == root_slot ); diff --git a/src/discof/restore/utils/fd_sspeer_selector.c b/src/discof/restore/utils/fd_sspeer_selector.c index 2c57299dfc0..e253ccb4b9c 100644 --- a/src/discof/restore/utils/fd_sspeer_selector.c +++ b/src/discof/restore/utils/fd_sspeer_selector.c @@ -275,7 +275,6 @@ fd_sspeer_selector_add( fd_sspeer_selector_t * selector, if( FD_UNLIKELY( !peer_pool_free( selector->pool ) ) ) return ULONG_MAX; peer = peer_pool_ele_acquire( selector->pool ); - FD_TEST( peer ); if( FD_LIKELY( ssinfo ) ) { peer->ssinfo = *ssinfo; } else { diff --git a/src/discof/restore/utils/fd_ssping.c b/src/discof/restore/utils/fd_ssping.c index 773321e1957..79a9a88980b 100644 --- a/src/discof/restore/utils/fd_ssping.c +++ b/src/discof/restore/utils/fd_ssping.c @@ -225,7 +225,6 @@ fd_ssping_add( fd_ssping_t * ssping, if( FD_LIKELY( !peer ) ) { if( FD_UNLIKELY( !peer_pool_free( ssping->pool ) ) ) return; peer = peer_pool_ele_acquire( ssping->pool ); - FD_TEST( peer ); memset( peer, 0, sizeof(fd_ssping_peer_t) ); peer->refcnt = 0UL; peer->state = PEER_STATE_UNPINGED; diff --git a/src/flamenco/runtime/fd_bank.c b/src/flamenco/runtime/fd_bank.c index 00765655a62..f2db2c3cdfa 100644 --- a/src/flamenco/runtime/fd_bank.c +++ b/src/flamenco/runtime/fd_bank.c @@ -53,9 +53,6 @@ fd_bank_footprint( void ) { FD_LOG_CRIT(( "Failed to acquire " #name " pool element: pool is full" )); \ } \ fd_bank_##name##_t * child_##name = fd_bank_##name##_pool_ele_acquire( name##_pool ); \ - if( FD_UNLIKELY( !child_##name ) ) { \ - FD_LOG_CRIT(( "Failed to acquire " #name " pool element" )); \ - } \ fd_rwlock_unwrite( fd_bank_get_##name##_pool_lock( bank ) ); \ /* If the dirty flag has not been set yet, we need to allocated a */ \ /* new pool element and copy over the data from the parent idx. */ \ diff --git a/src/flamenco/stakes/fd_stake_delegations.c b/src/flamenco/stakes/fd_stake_delegations.c index 2c34c6e21be..b68d63f7f7d 100644 --- a/src/flamenco/stakes/fd_stake_delegations.c +++ b/src/flamenco/stakes/fd_stake_delegations.c @@ -246,9 +246,6 @@ fd_stake_delegations_update( fd_stake_delegations_t * stake_delegations, } fd_stake_delegation_t * stake_delegation = fd_stake_delegation_pool_ele_acquire( stake_delegation_pool ); - if( FD_UNLIKELY( !stake_delegation ) ) { - FD_LOG_CRIT(( "unable to acquire stake delegation" )); - } stake_delegation->stake_account = *stake_account; stake_delegation->vote_account = *vote_account; diff --git a/src/flamenco/stakes/fd_vote_states.c b/src/flamenco/stakes/fd_vote_states.c index a2ca51dda44..dec06387159 100644 --- a/src/flamenco/stakes/fd_vote_states.c +++ b/src/flamenco/stakes/fd_vote_states.c @@ -193,9 +193,6 @@ fd_vote_states_update( fd_vote_states_t * vote_states, } fd_vote_state_ele_t * vote_state = fd_vote_state_pool_ele_acquire( vote_state_pool ); - if( FD_UNLIKELY( !vote_state ) ) { - FD_LOG_CRIT(( "unable to acquire vote state" )); - } vote_state->vote_account = *vote_account; vote_state->stake = 0UL;