2005-01-09 08:53:58

by Alexey Dobriyan

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

Signed-off-by: Alexey Dobriyan <[email protected]>

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);
}