Commit 91ced147 authored by Pavel Shilovsky's avatar Pavel Shilovsky

Delete redundant code for centos53

parent 879e9432
......@@ -1632,8 +1632,6 @@ ipv4_connect(struct sockaddr_in *psin_server, struct socket **csocket,
}
if (!orig_port_error && !connected) {
/* do not retry on the same port we just failed on */
if (psin_server->sin_port != htons(CIFS_PORT)) {
psin_server->sin_port = htons(CIFS_PORT);
rc = (*csocket)->ops->connect(*csocket,
......@@ -1642,7 +1640,6 @@ ipv4_connect(struct sockaddr_in *psin_server, struct socket **csocket,
if (rc >= 0)
connected = 1;
}
}
if (!orig_port_error && !connected) {
psin_server->sin_port = htons(RFC1001_PORT);
......@@ -1773,8 +1770,6 @@ ipv6_connect(struct sockaddr_in6 *psin_server, struct socket **csocket,
}
if (!orig_port_error && !connected) {
/* do not retry on the same port we just failed on */
if (psin_server->sin6_port != htons(CIFS_PORT)) {
psin_server->sin6_port = htons(CIFS_PORT);
rc = (*csocket)->ops->connect(*csocket,
......@@ -1783,7 +1778,6 @@ ipv6_connect(struct sockaddr_in6 *psin_server, struct socket **csocket,
if (rc >= 0)
connected = 1;
}
}
if (!orig_port_error && !connected) {
psin_server->sin6_port = htons(RFC1001_PORT);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment