[Nouveau] [PATCH] Changing comment for the list_empty() routine which returns boolean

Nitin Yewale nyewale at redhat.com
Tue Jun 5 18:11:39 UTC 2018


Author: Nitin U. Yewale <nyewale at redhat.com>
Date:   Mon Jun 4 23:28:41 2018 +0530

    Changing comment for the list_empty routine.
---
Signed-off-by: Nitin U. Yewale <nyewale at redhat.com>

diff --git a/drivers/gpu/drm/nouveau/include/nvif/list.h
b/drivers/gpu/drm/nouveau/include/nvif/list.h
index 8af5d144ecb0..12bf7e3333e4 100644
--- a/drivers/gpu/drm/nouveau/include/nvif/list.h
+++ b/drivers/gpu/drm/nouveau/include/nvif/list.h
@@ -226,10 +226,7 @@ static inline void list_move_tail(struct list_head *list,
 /**
  * Check if the list is empty.
  *
- * Example:
- * list_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 (head->next == head) or False otherwise.
  */
 static inline bool
 list_empty(struct list_head *head)

-- 
Thank you,
Nitin Yewale


More information about the Nouveau mailing list