From efebd9dca4cd4c8ee90487e2c693a902caf21f5d Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Wed, 20 Jan 2021 11:07:14 +0100 Subject: [PATCH] Squashed 'shared/c-list/' changes from ac7c83139821..96455db9f04a 96455db9f04a c-list: remove redundant check from c_list_is_linked() git-subtree-dir: shared/c-list git-subtree-split: 96455db9f04a6c9101a00957161551aea700b6aa --- src/c-list.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/c-list.h b/src/c-list.h index 3d44e33060..c92aa6f3ad 100644 --- a/src/c-list.h +++ b/src/c-list.h @@ -87,10 +87,12 @@ static inline _Bool c_list_is_linked(const CList *what) { * c_list_is_empty() - check whether a list is empty * @list: list to check, or NULL * + * This is the same as !c_list_is_linked(). + * * Return: True if @list is empty, false if not. */ static inline _Bool c_list_is_empty(const CList *list) { - return !list || !c_list_is_linked(list); + return !c_list_is_linked(list); } /**