提交 baaf4e48 编写于 作者: P Pavel Emelyanov 提交者: J. Bruce Fields

sunrpc: Remove unused sock arg from xs_next_srcport

Signed-off-by: NPavel Emelyanov <xemul@openvz.org>
Reviewed-by: NChuck Lever <chuck.lever@oracle.com>
Signed-off-by: NJ. Bruce Fields <bfields@redhat.com>
上级 5d4ec932
...@@ -1524,7 +1524,7 @@ static unsigned short xs_get_srcport(struct sock_xprt *transport) ...@@ -1524,7 +1524,7 @@ static unsigned short xs_get_srcport(struct sock_xprt *transport)
return port; return port;
} }
static unsigned short xs_next_srcport(struct sock_xprt *transport, struct socket *sock, unsigned short port) static unsigned short xs_next_srcport(struct sock_xprt *transport, unsigned short port)
{ {
if (transport->srcport != 0) if (transport->srcport != 0)
transport->srcport = 0; transport->srcport = 0;
...@@ -1558,7 +1558,7 @@ static int xs_bind4(struct sock_xprt *transport, struct socket *sock) ...@@ -1558,7 +1558,7 @@ static int xs_bind4(struct sock_xprt *transport, struct socket *sock)
break; break;
} }
last = port; last = port;
port = xs_next_srcport(transport, sock, port); port = xs_next_srcport(transport, port);
if (port > last) if (port > last)
nloop++; nloop++;
} while (err == -EADDRINUSE && nloop != 2); } while (err == -EADDRINUSE && nloop != 2);
...@@ -1591,7 +1591,7 @@ static int xs_bind6(struct sock_xprt *transport, struct socket *sock) ...@@ -1591,7 +1591,7 @@ static int xs_bind6(struct sock_xprt *transport, struct socket *sock)
break; break;
} }
last = port; last = port;
port = xs_next_srcport(transport, sock, port); port = xs_next_srcport(transport, port);
if (port > last) if (port > last)
nloop++; nloop++;
} while (err == -EADDRINUSE && nloop != 2); } while (err == -EADDRINUSE && nloop != 2);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册