aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc
diff options
context:
space:
mode:
authorPavel Emelyanov <xemul@parallels.com>2010-10-04 08:51:56 -0400
committerJ. Bruce Fields <bfields@redhat.com>2010-10-19 10:48:14 -0400
commitbaaf4e487a9c42b345bde14698fd566f864c9287 (patch)
tree10da679b1e2cf660d0e960afc07d4f2393cf0ebb /net/sunrpc
parent5d4ec932972a0dd5486c59909e62dc62105d065c (diff)
sunrpc: Remove unused sock arg from xs_next_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 304e2de2c70c..024a64443203 100644
--- a/net/sunrpc/xprtsock.c
+++ b/net/sunrpc/xprtsock.c
@@ -1524,7 +1524,7 @@ static unsigned short xs_get_srcport(struct sock_xprt *transport)
1524 return port; 1524 return port;
1525} 1525}
1526 1526
1527static unsigned short xs_next_srcport(struct sock_xprt *transport, struct socket *sock, unsigned short port) 1527static unsigned short xs_next_srcport(struct sock_xprt *transport, unsigned short port)
1528{ 1528{
1529 if (transport->srcport != 0) 1529 if (transport->srcport != 0)
1530 transport->srcport = 0; 1530 transport->srcport = 0;
@@ -1558,7 +1558,7 @@ static int xs_bind4(struct sock_xprt *transport, struct socket *sock)
1558 break; 1558 break;
1559 } 1559 }
1560 last = port; 1560 last = port;
1561 port = xs_next_srcport(transport, sock, port); 1561 port = xs_next_srcport(transport, port);
1562 if (port > last) 1562 if (port > last)
1563 nloop++; 1563 nloop++;
1564 } while (err == -EADDRINUSE && nloop != 2); 1564 } while (err == -EADDRINUSE && nloop != 2);
@@ -1591,7 +1591,7 @@ static int xs_bind6(struct sock_xprt *transport, struct socket *sock)
1591 break; 1591 break;
1592 } 1592 }
1593 last = port; 1593 last = port;
1594 port = xs_next_srcport(transport, sock, port); 1594 port = xs_next_srcport(transport, port);
1595 if (port > last) 1595 if (port > last)
1596 nloop++; 1596 nloop++;
1597 } while (err == -EADDRINUSE && nloop != 2); 1597 } while (err == -EADDRINUSE && nloop != 2);