[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190326062103.6775-1-nyewale@redhat.com>
Date: Tue, 26 Mar 2019 11:51:03 +0530
From: "Nitin U. Yewale" <nyewale@...hat.com>
To: airlied@...ux.ie, daniel@...ll.ch, linux-kernel@...r.kernel.org
Cc: loberman@...hat.com, "Nitin U. Yewale" <nyewale@...hat.com>
Subject: [PATCH] Change in comment for the list_empty() routine.
Hello,
In one of the observations it was noticed that list_empty() routine
returns true when the list is empty (head->next == head) OR False
otherwise. Hence the proposed patch.
Thank you,
Nitin Yewale
Signed-off-by: Nitin U. Yewale <nyewale@...hat.com>
---
drivers/gpu/drm/nouveau/include/nvif/list.h | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
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)
--
2.17.2
Powered by blists - more mailing lists