[PATCH] eventpoll: s/0/NULL/ in pointer context

From: Alexey Dobriyan
Date: Sun Jan 09 2005 - 03:56:09 EST


Signed-off-by: Alexey Dobriyan <adobriyan@xxxxxxx>

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);
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/