aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2008-10-03 17:15:38 -0400
committerJ. Bruce Fields <bfields@citi.umich.edu>2008-10-04 17:12:27 -0400
commit2937391385807b3da9cd7a39345259caf550b032 (patch)
tree6b75733afd1c5eb9a847c72b0c745ffc24aef559 /net/sunrpc
parent26a414092353590ceaa5955bcb53f863d6ea7549 (diff)
NLM: Remove unused argument from svc_addsock() function
Clean up: The svc_addsock() function no longer uses its "proto" argument, so remove it. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Cc: Neil Brown <neilb@suse.de> Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Diffstat (limited to 'net/sunrpc')
-rw-r--r--net/sunrpc/svcsock.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/net/sunrpc/svcsock.c b/net/sunrpc/svcsock.c
index f91377c14951..95293f549e9c 100644
--- a/net/sunrpc/svcsock.c
+++ b/net/sunrpc/svcsock.c
@@ -1167,8 +1167,7 @@ static struct svc_sock *svc_setup_socket(struct svc_serv *serv,
1167 1167
1168int svc_addsock(struct svc_serv *serv, 1168int svc_addsock(struct svc_serv *serv,
1169 int fd, 1169 int fd,
1170 char *name_return, 1170 char *name_return)
1171 int *proto)
1172{ 1171{
1173 int err = 0; 1172 int err = 0;
1174 struct socket *so = sockfd_lookup(fd, &err); 1173 struct socket *so = sockfd_lookup(fd, &err);
@@ -1203,7 +1202,6 @@ int svc_addsock(struct svc_serv *serv,
1203 sockfd_put(so); 1202 sockfd_put(so);
1204 return err; 1203 return err;
1205 } 1204 }
1206 if (proto) *proto = so->sk->sk_protocol;
1207 return one_sock_name(name_return, svsk); 1205 return one_sock_name(name_return, svsk);
1208} 1206}
1209EXPORT_SYMBOL_GPL(svc_addsock); 1207EXPORT_SYMBOL_GPL(svc_addsock);