Skip to contentSkip to conversation

nfs: fix sparse warning in delegation.c

PATCH In review Harvey Harrison 1 participant 1 message Feb 20, 2008 NFS client

lore
Share & tools
lore
#0 lore raw

PATCH 2/4 nfs: fix sparse warning in delegation.c

fs/nfs/delegation.c:52:34: warning: Using plain integer as NULL pointer

---
 fs/nfs/delegation.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
fs/nfs/delegation.c +1 -1
index b9eadd1..00a5e44 100644
@@ -49,7 +49,7 @@ static int nfs_delegation_claim_locks(struct nfs_open_context *ctx, struct nfs4_
 	struct file_lock *fl;
 	int status;
 
-	for (fl = inode->i_flock; fl != 0; fl = fl->fl_next) {
+	for (fl = inode->i_flock; fl != NULL; fl = fl->fl_next) {
 		if (!(fl->fl_flags & (FL_POSIX|FL_FLOCK)))
 			continue;
 		if (nfs_file_open_context(fl->fl_file) != ctx)
Signature · 1 line
1.5.4.2.200.g99e75