forked from Minki/linux
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:
parent
54224f04ae
commit
9e074856ca
@ -439,9 +439,9 @@ static ssize_t write_threads(struct file *file, char *buf, size_t size)
|
|||||||
rv = get_int(&mesg, &newthreads);
|
rv = get_int(&mesg, &newthreads);
|
||||||
if (rv)
|
if (rv)
|
||||||
return rv;
|
return rv;
|
||||||
if (newthreads <0)
|
if (newthreads < 0)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
rv = nfsd_svc(2049, newthreads);
|
rv = nfsd_svc(NFS_PORT, newthreads);
|
||||||
if (rv)
|
if (rv)
|
||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user