aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-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);