]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
NFSD: Replace open-coded integer with macro
authorChuck Lever <chuck.lever@oracle.com>
Fri, 12 Dec 2008 21:57:27 +0000 (16:57 -0500)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Tue, 6 Jan 2009 16:53:57 +0000 (11:53 -0500)
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>
fs/nfsd/nfsctl.c

index 498d763b9320a56a519af517208d79d3dcd07275..856b8646a4808c37f7d37f6ab5f38c8fd31e03a5 100644 (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;
        }