Correct xorg_list_is_empty return value description

The helper xorg_list_is_empty returns True when the list is empty and not when
it contains one or more elements.

Signed-off-by: Roman Gilg <subdiff@gmail.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Roman Gilg 2018-02-09 23:40:42 +01:00 committed by Peter Hutterer
parent bebcc8477c
commit 2ff6eaad85
1 changed files with 2 additions and 1 deletions

View File

@ -211,7 +211,8 @@ xorg_list_del(struct xorg_list *entry)
* Example:
* xorg_list_is_empty(&bar->list_of_foos);
*
* @return True if the list contains one or more elements or False otherwise.
* @return True if the list is empty or False if the list contains one or more
* elements.
*/
static inline int
xorg_list_is_empty(struct xorg_list *head)