Commit 9ac87b8c authored by Pavel Shilovsky's avatar Pavel Shilovsky

Delete redundant code for 2.6.33

parent 86e98a1d
......@@ -1796,8 +1796,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 *)
......@@ -1806,7 +1804,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);
......@@ -1954,8 +1951,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,
......@@ -1963,7 +1958,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