aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc
diff options
context:
space:
mode:
authorPavel Emelyanov <xemul@parallels.com>2010-10-04 08:51:23 -0400
committerJ. Bruce Fields <bfields@redhat.com>2010-10-19 10:48:14 -0400
commit5d4ec932972a0dd5486c59909e62dc62105d065c (patch)
treeebd90fe601b7db72050a750a9984830cc894d702 /net/sunrpc
parent4a84386fc27fdc7d2ea69fdbc641008e8f943159 (diff)
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>
Diffstat (limited to 'net/sunrpc')
-rw-r--r--net/sunrpc/xprtsock.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/sunrpc/xprtsock.c b/net/sunrpc/xprtsock.c
index f9964ef35e3e..304e2de2c70c 100644
--- a/net/sunrpc/xprtsock.c
+++ b/net/sunrpc/xprtsock.c
@@ -1515,7 +1515,7 @@ static void xs_set_port(struct rpc_xprt *xprt, unsigned short port)
1515 xs_update_peer_port(xprt); 1515 xs_update_peer_port(xprt);
1516} 1516}
1517 1517
1518static unsigned short xs_get_srcport(struct sock_xprt *transport, struct socket *sock) 1518static unsigned short xs_get_srcport(struct sock_xprt *transport)
1519{ 1519{
1520 unsigned short port = transport->srcport; 1520 unsigned short port = transport->srcport;
1521 1521
@@ -1542,7 +1542,7 @@ static int xs_bind4(struct sock_xprt *transport, struct socket *sock)
1542 }; 1542 };
1543 struct sockaddr_in *sa; 1543 struct sockaddr_in *sa;
1544 int err, nloop = 0; 1544 int err, nloop = 0;
1545 unsigned short port = xs_get_srcport(transport, sock); 1545 unsigned short port = xs_get_srcport(transport);
1546 unsigned short last; 1546 unsigned short last;
1547 1547
1548 sa = (struct sockaddr_in *)&transport->srcaddr; 1548 sa = (struct sockaddr_in *)&transport->srcaddr;
@@ -1575,7 +1575,7 @@ static int xs_bind6(struct sock_xprt *transport, struct socket *sock)
1575 }; 1575 };
1576 struct sockaddr_in6 *sa; 1576 struct sockaddr_in6 *sa;
1577 int err, nloop = 0; 1577 int err, nloop = 0;
1578 unsigned short port = xs_get_srcport(transport, sock); 1578 unsigned short port = xs_get_srcport(transport);
1579 unsigned short last; 1579 unsigned short last;
1580 1580
1581 sa = (struct sockaddr_in6 *)&transport->srcaddr; 1581 sa = (struct sockaddr_in6 *)&transport->srcaddr;