提交 9e074856 编写于 作者: C Chuck Lever 提交者: J. Bruce Fields

NFSD: Replace open-coded integer with macro

Clean up: Instead of open-coding 2049, use the NFS_PORT macro.
Signed-off-by: NChuck Lever <chuck.lever@oracle.com>
Signed-off-by: NJ. Bruce Fields <bfields@citi.umich.edu>
上级 54224f04
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册