From: Harvey Harrison Date: Wed, 20 Feb 2008 20:49:02 +0000 (-0800) Subject: nfsd: fix sparse warning in vfs.c X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=3ba1514815817f93a4f09615726dd4bcd0ddbbc9;p=linux-beck.git nfsd: fix sparse warning in vfs.c fs/nfsd/vfs.c:991:27: warning: Using plain integer as NULL pointer Signed-off-by: Harvey Harrison Signed-off-by: J. Bruce Fields --- diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c index d5a238e6e6ed..832e2b86c541 100644 --- a/fs/nfsd/vfs.c +++ b/fs/nfsd/vfs.c @@ -988,7 +988,7 @@ nfsd_vfs_write(struct svc_rqst *rqstp, struct svc_fh *fhp, struct file *file, * flushing the data to disk is handled separately below. */ - if (file->f_op->fsync == 0) {/* COMMIT3 cannot work */ + if (!file->f_op->fsync) {/* COMMIT3 cannot work */ stable = 2; *stablep = 2; /* FILE_SYNC */ }