summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2021-01-20 11:07:14 +0100
committerThomas Haller <thaller@redhat.com>2021-01-20 11:07:14 +0100
commitefebd9dca4cd4c8ee90487e2c693a902caf21f5d (patch)
treeac9688241a290657da3df68815b4da706d59f5dd
parent722510b73d783a64ce6f69b883daa312936d9eea (diff)
downloadNetworkManager-efebd9dca4cd4c8ee90487e2c693a902caf21f5d.tar.gz
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
-rw-r--r--src/c-list.h4
1 files changed, 3 insertions, 1 deletions
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);
}
/**