From: Chuck Lever Date: Fri, 12 Dec 2008 21:57:27 +0000 (-0500) Subject: NFSD: Replace open-coded integer with macro X-Git-Tag: v2.6.29-rc1~177^2~17 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=9e074856caf13ba83363f73759f5e395f74ccf41;p=linux-2.6-omap-h63xx.git NFSD: Replace open-coded integer with macro Clean up: Instead of open-coding 2049, use the NFS_PORT macro. Signed-off-by: Chuck Lever Signed-off-by: J. Bruce Fields --- diff --git a/fs/nfsd/nfsctl.c b/fs/nfsd/nfsctl.c index 498d763b932..856b8646a48 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; }