diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2008-12-12 16:57:27 -0500 |
---|---|---|
committer | J. Bruce Fields <bfields@citi.umich.edu> | 2009-01-06 11:53:57 -0500 |
commit | 9e074856caf13ba83363f73759f5e395f74ccf41 (patch) | |
tree | 8ab1362829f406276ebbdbe5b4cfe831f1b97a1b /fs/nfsd | |
parent | 54224f04ae95d86b27c0673cd773ebb120d86876 (diff) | |
download | linux-9e074856caf13ba83363f73759f5e395f74ccf41.tar.gz linux-9e074856caf13ba83363f73759f5e395f74ccf41.tar.bz2 linux-9e074856caf13ba83363f73759f5e395f74ccf41.zip |
NFSD: Replace open-coded integer with macro
Clean up: Instead of open-coding 2049, use the NFS_PORT macro.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Diffstat (limited to 'fs/nfsd')
-rw-r--r-- | fs/nfsd/nfsctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfsd/nfsctl.c b/fs/nfsd/nfsctl.c index 498d763b9320..856b8646a480 100644 --- a/fs/nfsd/nfsctl.c +++ b/fs/nfsd/nfsctl.c @@ -439,9 +439,9 @@ static ssize_t write_threads(struct file *file, char *buf, size_t size) rv = get_int(&mesg, &newthreads); if (rv) return rv; - if (newthreads <0) + if (newthreads < 0) return -EINVAL; - rv = nfsd_svc(2049, newthreads); + rv = nfsd_svc(NFS_PORT, newthreads); if (rv) return rv; } |