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
This commit is contained in:
Thomas Haller 2021-01-20 11:07:14 +01:00
parent 722510b73d
commit efebd9dca4

View file

@ -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);
}
/**