diff --git a/include/nuttx/list.h b/include/nuttx/list.h index bbeb16e541..8081da31db 100644 --- a/include/nuttx/list.h +++ b/include/nuttx/list.h @@ -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) { - return (list->next == list) ? true : false; + return list->next == 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)