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>
This commit is contained in:
Chuck Lever 2008-12-12 16:57:27 -05:00 committed by J. Bruce Fields
parent 54224f04ae
commit 9e074856ca
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}