diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-10-13 13:47:06 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-10-14 18:10:50 +0200 |
commit | 3972085dbab9b05e839b2612abf625c6097a180b (patch) | |
tree | 6ffb806aab62a1e0bc809bf67de8d39d2776f0d4 /cpukit/include | |
parent | rtems: Remove superfluous include (diff) | |
download | rtems-3972085dbab9b05e839b2612abf625c6097a180b.tar.bz2 |
Remove *_Is_null() inline functions
Simply compare the values against NULL.
Diffstat (limited to 'cpukit/include')
-rw-r--r-- | cpukit/include/rtems/chain.h | 2 | ||||
-rw-r--r-- | cpukit/include/rtems/rtems/asrimpl.h | 13 | ||||
-rw-r--r-- | cpukit/include/rtems/score/chainimpl.h | 17 | ||||
-rw-r--r-- | cpukit/include/rtems/score/objectmp.h | 15 | ||||
-rw-r--r-- | cpukit/include/rtems/score/threadimpl.h | 15 |
5 files changed, 1 insertions, 61 deletions
diff --git a/cpukit/include/rtems/chain.h b/cpukit/include/rtems/chain.h index 11ebdca322..25ea0b23b7 100644 --- a/cpukit/include/rtems/chain.h +++ b/cpukit/include/rtems/chain.h @@ -234,7 +234,7 @@ RTEMS_INLINE_ROUTINE bool rtems_chain_is_null_node( const rtems_chain_node *the_node ) { - return _Chain_Is_null_node( the_node ); + return the_node == NULL; } /** diff --git a/cpukit/include/rtems/rtems/asrimpl.h b/cpukit/include/rtems/rtems/asrimpl.h index 8e8efe5de5..90910cabc4 100644 --- a/cpukit/include/rtems/rtems/asrimpl.h +++ b/cpukit/include/rtems/rtems/asrimpl.h @@ -45,19 +45,6 @@ RTEMS_INLINE_ROUTINE void _ASR_Initialize ( memset(asr, 0, sizeof(*asr)); } -/** - * @brief ASR_Is_null_handler - * - * This function returns TRUE if the given asr_handler is NULL and - * FALSE otherwise. - */ -RTEMS_INLINE_ROUTINE bool _ASR_Is_null_handler ( - rtems_asr_entry asr_handler -) -{ - return asr_handler == NULL; -} - RTEMS_INLINE_ROUTINE rtems_signal_set _ASR_Swap_signals( ASR_Information *asr ) { rtems_signal_set new_signals_posted; diff --git a/cpukit/include/rtems/score/chainimpl.h b/cpukit/include/rtems/score/chainimpl.h index 15bce3668c..2d78c4ec6d 100644 --- a/cpukit/include/rtems/score/chainimpl.h +++ b/cpukit/include/rtems/score/chainimpl.h @@ -167,23 +167,6 @@ RTEMS_INLINE_ROUTINE bool _Chain_Are_nodes_equal( } /** - * @brief Checks if the chain node pointer is NULL. - * - * This function returns true if the_node is NULL and false otherwise. - * - * @param the_node The node pointer to check. - * - * @retval true @a the_node is @c NULL. - * @retval false @a the_node is not @c NULL. - */ -RTEMS_INLINE_ROUTINE bool _Chain_Is_null_node( - const Chain_Node *the_node -) -{ - return (the_node == NULL); -} - -/** * @brief Returns pointer to chain head. * * This function returns a pointer to the head node on the chain. diff --git a/cpukit/include/rtems/score/objectmp.h b/cpukit/include/rtems/score/objectmp.h index c2621c3857..74a01de1a7 100644 --- a/cpukit/include/rtems/score/objectmp.h +++ b/cpukit/include/rtems/score/objectmp.h @@ -190,21 +190,6 @@ Objects_MP_Control *_Objects_MP_Allocate_global_object( void ); */ void _Objects_MP_Free_global_object( Objects_MP_Control *the_object ); -/** - * @brief Checks if the global object is NULL or not. - * - * @param the_object The object to check if it is NULL. - * - * @retval true @a the_object is NULL. - * @retval false @a the_object is not NULL. - */ -RTEMS_INLINE_ROUTINE bool _Objects_MP_Is_null_global_object ( - Objects_MP_Control *the_object -) -{ - return( the_object == NULL ); -} - /** @} */ #ifdef __cplusplus diff --git a/cpukit/include/rtems/score/threadimpl.h b/cpukit/include/rtems/score/threadimpl.h index a2e1e1427c..9468d64df0 100644 --- a/cpukit/include/rtems/score/threadimpl.h +++ b/cpukit/include/rtems/score/threadimpl.h @@ -1072,21 +1072,6 @@ RTEMS_INLINE_ROUTINE bool _Thread_Is_context_switch_necessary( void ) } /** - * @brief Checks if the thread is NULL. - * - * @param the_thread The thread for the verification. - * - * @retval true The thread is @c NULL. - * @retval false The thread is not @c NULL. - */ -RTEMS_INLINE_ROUTINE bool _Thread_Is_null ( - const Thread_Control *the_thread -) -{ - return ( the_thread == NULL ); -} - -/** * @brief Gets the maximum number of internal threads. * * @return The maximum number of internal threads. |