mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Nitin U. Yewale" <nyewale@redhat.com>
To: airlied@linux.ie, daniel@ffwll.ch, linux-kernel@vger.kernel.org
Cc: loberman@redhat.com, "Nitin U. Yewale" <nyewale@redhat.com>
Subject: [PATCH] Change in comment for the list_empty() routine.
Date: Tue, 26 Mar 2019 11:51:03 +0530	[thread overview]
Message-ID: <20190326062103.6775-1-nyewale@redhat.com> (raw)

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@redhat.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


             reply	other threads:[~2019-03-26  6:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-26  6:21 Nitin U. Yewale [this message]
2019-03-26  7:00 ` Rasmus Villemoes

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190326062103.6775-1-nyewale@redhat.com \
    --to=nyewale@redhat.com \
    --cc=airlied@linux.ie \
    --cc=daniel@ffwll.ch \
    --cc=linux-kernel@vger.kernel.org \
    --cc=loberman@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®