summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarvey Harrison <harvey.harrison@gmail.com>2008-02-20 21:49:02 +0100
committerJ. Bruce Fields <bfields@citi.umich.edu>2008-04-23 22:13:39 +0200
commit3ba1514815817f93a4f09615726dd4bcd0ddbbc9 (patch)
tree3822bc0b3447b3f68ae8179059f022e056c87ab4
parentnfsd: fix sparse warnings (diff)
downloadlinux-3ba1514815817f93a4f09615726dd4bcd0ddbbc9.tar.xz
linux-3ba1514815817f93a4f09615726dd4bcd0ddbbc9.zip
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 <harvey.harrison@gmail.com> Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
-rw-r--r--fs/nfsd/vfs.c2
1 files changed, 1 insertions, 1 deletions
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 */
}