mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-24 21:50:17 +01:00
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:
parent
722510b73d
commit
efebd9dca4
1 changed files with 3 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue