sunrpc: Remove unused sock arg from xs_get_srcport
Signed-off-by: Pavel Emelyanov <xemul@openvz.org> Reviewed-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
This commit is contained in:
parent
4a84386fc2
commit
5d4ec93297
1 changed files with 3 additions and 3 deletions
|
@ -1515,7 +1515,7 @@ static void xs_set_port(struct rpc_xprt *xprt, unsigned short port)
|
||||||
xs_update_peer_port(xprt);
|
xs_update_peer_port(xprt);
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned short xs_get_srcport(struct sock_xprt *transport, struct socket *sock)
|
static unsigned short xs_get_srcport(struct sock_xprt *transport)
|
||||||
{
|
{
|
||||||
unsigned short port = transport->srcport;
|
unsigned short port = transport->srcport;
|
||||||
|
|
||||||
|
@ -1542,7 +1542,7 @@ static int xs_bind4(struct sock_xprt *transport, struct socket *sock)
|
||||||
};
|
};
|
||||||
struct sockaddr_in *sa;
|
struct sockaddr_in *sa;
|
||||||
int err, nloop = 0;
|
int err, nloop = 0;
|
||||||
unsigned short port = xs_get_srcport(transport, sock);
|
unsigned short port = xs_get_srcport(transport);
|
||||||
unsigned short last;
|
unsigned short last;
|
||||||
|
|
||||||
sa = (struct sockaddr_in *)&transport->srcaddr;
|
sa = (struct sockaddr_in *)&transport->srcaddr;
|
||||||
|
@ -1575,7 +1575,7 @@ static int xs_bind6(struct sock_xprt *transport, struct socket *sock)
|
||||||
};
|
};
|
||||||
struct sockaddr_in6 *sa;
|
struct sockaddr_in6 *sa;
|
||||||
int err, nloop = 0;
|
int err, nloop = 0;
|
||||||
unsigned short port = xs_get_srcport(transport, sock);
|
unsigned short port = xs_get_srcport(transport);
|
||||||
unsigned short last;
|
unsigned short last;
|
||||||
|
|
||||||
sa = (struct sockaddr_in6 *)&transport->srcaddr;
|
sa = (struct sockaddr_in6 *)&transport->srcaddr;
|
||||||
|
|
Loading…
Reference in a new issue