Skip to content

Commit

Permalink
NFSD: Replace open-coded integer with macro
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Chuck Lever authored and J. Bruce Fields committed Jan 6, 2009
1 parent 54224f0 commit 9e07485
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/nfsd/nfsctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 9e07485

Please sign in to comment.