Commit 29373913 authored by Chuck Lever's avatar Chuck Lever Committed by J. Bruce Fields

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: default avatarChuck Lever <chuck.lever@oracle.com>
Cc: Neil Brown <neilb@suse.de>
Signed-off-by: default avatarJ. Bruce Fields <bfields@citi.umich.edu>
parent 26a41409
...@@ -614,7 +614,7 @@ static ssize_t __write_ports(struct file *file, char *buf, size_t size) ...@@ -614,7 +614,7 @@ static ssize_t __write_ports(struct file *file, char *buf, size_t size)
return -EINVAL; return -EINVAL;
err = nfsd_create_serv(); err = nfsd_create_serv();
if (!err) { if (!err) {
err = svc_addsock(nfsd_serv, fd, buf, NULL); err = svc_addsock(nfsd_serv, fd, buf);
if (err >= 0) { if (err >= 0) {
err = lockd_up(); err = lockd_up();
if (err < 0) if (err < 0)
......
...@@ -39,10 +39,7 @@ int svc_send(struct svc_rqst *); ...@@ -39,10 +39,7 @@ int svc_send(struct svc_rqst *);
void svc_drop(struct svc_rqst *); void svc_drop(struct svc_rqst *);
void svc_sock_update_bufs(struct svc_serv *serv); void svc_sock_update_bufs(struct svc_serv *serv);
int svc_sock_names(char *buf, struct svc_serv *serv, char *toclose); int svc_sock_names(char *buf, struct svc_serv *serv, char *toclose);
int svc_addsock(struct svc_serv *serv, int svc_addsock(struct svc_serv *serv, int fd, char *name_return);
int fd,
char *name_return,
int *proto);
void svc_init_xprt_sock(void); void svc_init_xprt_sock(void);
void svc_cleanup_xprt_sock(void); void svc_cleanup_xprt_sock(void);
......
...@@ -1167,8 +1167,7 @@ static struct svc_sock *svc_setup_socket(struct svc_serv *serv, ...@@ -1167,8 +1167,7 @@ static struct svc_sock *svc_setup_socket(struct svc_serv *serv,
int svc_addsock(struct svc_serv *serv, int svc_addsock(struct svc_serv *serv,
int fd, int fd,
char *name_return, char *name_return)
int *proto)
{ {
int err = 0; int err = 0;
struct socket *so = sockfd_lookup(fd, &err); struct socket *so = sockfd_lookup(fd, &err);
...@@ -1203,7 +1202,6 @@ int svc_addsock(struct svc_serv *serv, ...@@ -1203,7 +1202,6 @@ int svc_addsock(struct svc_serv *serv,
sockfd_put(so); sockfd_put(so);
return err; return err;
} }
if (proto) *proto = so->sk->sk_protocol;
return one_sock_name(name_return, svsk); return one_sock_name(name_return, svsk);
} }
EXPORT_SYMBOL_GPL(svc_addsock); EXPORT_SYMBOL_GPL(svc_addsock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment