nfs: fix sparse warning in delegation.c
PATCH 2/4 nfs: fix sparse warning in delegation.c
fs/nfs/delegation.c:52:34: warning: Using plain integer as NULL pointer
Signed-off-by Harvey Harrison <[email protected]>
--- fs/nfs/delegation.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
fs/nfs/delegation.c +1 -1
@@ -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