projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
54224f0
)
NFSD: Replace open-coded integer with macro
author
Chuck Lever
<chuck.lever@oracle.com>
Fri, 12 Dec 2008 21:57:27 +0000
(16:57 -0500)
committer
J. 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
patch
|
blob
|
blame
|
history
diff --git
a/fs/nfsd/nfsctl.c
b/fs/nfsd/nfsctl.c
index 498d763b9320a56a519af517208d79d3dcd07275..856b8646a4808c37f7d37f6ab5f38c8fd31e03a5 100644
(file)
--- 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;
}