Commit 7e29e53c authored by Pavel Shilovsky's avatar Pavel Shilovsky

Delete redundant code for 2.6.29

parent 99851c26
......@@ -1778,8 +1778,6 @@ ipv4_connect(struct TCP_Server_Info *server)
}
if (!orig_port_error && !connected) {
/* do not retry on the same port we just failed on */
if (server->addr.sockAddr.sin_port != htons(CIFS_PORT)) {
server->addr.sockAddr.sin_port = htons(CIFS_PORT);
rc = socket->ops->connect(socket,
(struct sockaddr *)
......@@ -1788,7 +1786,6 @@ ipv4_connect(struct TCP_Server_Info *server)
if (rc >= 0)
connected = true;
}
}
if (!orig_port_error && !connected) {
server->addr.sockAddr.sin_port = htons(RFC1001_PORT);
......@@ -1927,8 +1924,6 @@ ipv6_connect(struct TCP_Server_Info *server)
}
if (!orig_port_error && !connected) {
/* do not retry on the same port we just failed on */
if (server->addr.sockAddr6.sin6_port != htons(CIFS_PORT)) {
server->addr.sockAddr6.sin6_port = htons(CIFS_PORT);
rc = socket->ops->connect(socket, (struct sockaddr *)
&server->addr.sockAddr6,
......@@ -1936,7 +1931,6 @@ ipv6_connect(struct TCP_Server_Info *server)
if (rc >= 0)
connected = true;
}
}
if (!orig_port_error && !connected) {
server->addr.sockAddr6.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