mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 05:55:46 +08:00
list: Remove the unnecessary ? : operator
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Petro Karashchenko
parent
992747cef3
commit
306431d16f
@@ -387,12 +387,12 @@ list_next_wrap(FAR struct list_node *list, FAR struct list_node *item)
|
|||||||
|
|
||||||
static inline bool list_is_empty(FAR struct list_node *list)
|
static inline bool list_is_empty(FAR struct list_node *list)
|
||||||
{
|
{
|
||||||
return (list->next == list) ? true : false;
|
return list->next == list;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline bool list_is_clear(FAR struct list_node *list)
|
static inline bool list_is_clear(FAR struct list_node *list)
|
||||||
{
|
{
|
||||||
return (list->next == NULL) ? true : false;
|
return list->next == NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline size_t list_length(FAR struct list_node *list)
|
static inline size_t list_length(FAR struct list_node *list)
|
||||||
|
|||||||
Reference in New Issue
Block a user