summaryrefslogtreecommitdiffstats
path: root/fs/nfsd
diff options
context:
space:
mode:
authorHarvey Harrison <harvey.harrison@gmail.com>2008-02-20 12:49:02 -0800
committerJ. Bruce Fields <bfields@citi.umich.edu>2008-04-23 16:13:39 -0400
commit3ba1514815817f93a4f09615726dd4bcd0ddbbc9 (patch)
tree3822bc0b3447b3f68ae8179059f022e056c87ab4 /fs/nfsd
parenta254b246ee238ab90e7b3fae1f76875b608b2213 (diff)
downloadlinux-3ba1514815817f93a4f09615726dd4bcd0ddbbc9.tar.gz
linux-3ba1514815817f93a4f09615726dd4bcd0ddbbc9.tar.bz2
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>
Diffstat (limited to 'fs/nfsd')
-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 */
}