From 306431d16f489f9956826f3d0599d9354e28b51a Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Fri, 29 Jul 2022 10:55:37 +0800 Subject: [PATCH] list: Remove the unnecessary ? : operator Signed-off-by: Xiang Xiao --- include/nuttx/list.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)