Skip to contentSkip to conversation

autofs4: s/0/NULL/ in pointer context

PATCH New Alexey Dobriyan 1 participant 1 message Jan 9, 2005 Kernel automounter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 autofs4: s/0/NULL/ in pointer context

fs/autofs4/waitq.c +1 -1
Index: linux-2.6.10-bk11-warnings/fs/autofs4/waitq.c
===================================================================
@@ -275,7 +275,7 @@
 	struct autofs_wait_queue *wq, **wql;
 
 	down(&sbi->wq_sem);
-	for ( wql = &sbi->queues ; (wq = *wql) != 0 ; wql = &wq->next ) {
+	for ( wql = &sbi->queues ; (wq = *wql) != NULL ; wql = &wq->next ) {
 		if ( wq->wait_queue_token == wait_queue_token )
 			break;
 	}