mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] eventpoll: s/0/NULL/ in pointer context
@ 2005-01-09  9:27 Alexey Dobriyan
  0 siblings, 0 replies; only message in thread
From: Alexey Dobriyan @ 2005-01-09  9:27 UTC (permalink / raw)
  To: Davide Libenzi; +Cc: linux-kernel

Signed-off-by: Alexey Dobriyan <adobriyan@mail.ru>

Index: linux-2.6.10-bk11-warnings/fs/eventpoll.c
===================================================================
--- linux-2.6.10-bk11-warnings/fs/eventpoll.c	(revision 6)
+++ linux-2.6.10-bk11-warnings/fs/eventpoll.c	(revision 7)
@@ -806,7 +806,7 @@
 	 * write-holding "sem" we can be sure that no file cleanup code will hit
 	 * us during this operation. So we can avoid the lock on "ep->lock".
 	 */
-	while ((rbp = rb_first(&ep->rbr)) != 0) {
+	while ((rbp = rb_first(&ep->rbr)) != NULL) {
 		epi = rb_entry(rbp, struct epitem, rbn);
 		ep_remove(ep, epi);
 	}

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-01-09  8:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-09  9:27 [PATCH] eventpoll: s/0/NULL/ in pointer context Alexey Dobriyan

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®