VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Stephen Hemminger <shemminger@linux-foundation.org> 2007-10-18 03:07:05 -0700 committer: Linus Torvalds <torvalds@woody.linux-foundation.org> 2007-10-18 14:37:31 -0700 commit: c80544dc0b87bb65038355e7aafdc30be16b26ab parent: 0e9663ee452ffce0d429656ebbcfe69417a30e92
Commit Summary:
sparse pointer use of zero as null
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/fs/autofs/waitq.c b/fs/autofs/waitq.c
index 19a9cafb5ddf..be46805972f0 100644
--- a/fs/autofs/waitq.c
+++ b/fs/autofs/waitq.c
@@ -182,7 +182,7 @@ int autofs_wait_release(struct autofs_sb_info *sbi, autofs_wqt_t wait_queue_toke
 {
 	struct autofs_wait_queue *wq, **wql;
 
-	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;
 	}