diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-02-20 20:49:02 (GMT) |
---|---|---|
committer | J. Bruce Fields <bfields@citi.umich.edu> | 2008-04-23 20:13:39 (GMT) |
commit | 3ba1514815817f93a4f09615726dd4bcd0ddbbc9 (patch) | |
tree | 3822bc0b3447b3f68ae8179059f022e056c87ab4 /fs/nfsd | |
parent | a254b246ee238ab90e7b3fae1f76875b608b2213 (diff) | |
download | linux-fsl-qoriq-3ba1514815817f93a4f09615726dd4bcd0ddbbc9.tar.xz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c index d5a238e..832e2b8 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 */ } |