Commit e5c7723d authored by Pavel Shilovsky's avatar Pavel Shilovsky

Delete redundant code for centos54

parent 91ced147
...@@ -1831,8 +1831,6 @@ ipv4_connect(struct TCP_Server_Info *server) ...@@ -1831,8 +1831,6 @@ ipv4_connect(struct TCP_Server_Info *server)
} }
if (!orig_port_error && !connected) { 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); server->addr.sockAddr.sin_port = htons(CIFS_PORT);
rc = socket->ops->connect(socket, rc = socket->ops->connect(socket,
(struct sockaddr *) (struct sockaddr *)
...@@ -1841,7 +1839,6 @@ ipv4_connect(struct TCP_Server_Info *server) ...@@ -1841,7 +1839,6 @@ ipv4_connect(struct TCP_Server_Info *server)
if (rc >= 0) if (rc >= 0)
connected = true; connected = true;
} }
}
if (!orig_port_error && !connected) { if (!orig_port_error && !connected) {
server->addr.sockAddr.sin_port = htons(RFC1001_PORT); server->addr.sockAddr.sin_port = htons(RFC1001_PORT);
...@@ -1981,8 +1978,6 @@ ipv6_connect(struct TCP_Server_Info *server) ...@@ -1981,8 +1978,6 @@ ipv6_connect(struct TCP_Server_Info *server)
} }
if (!orig_port_error && !connected) { 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); server->addr.sockAddr6.sin6_port = htons(CIFS_PORT);
rc = socket->ops->connect(socket, (struct sockaddr *) rc = socket->ops->connect(socket, (struct sockaddr *)
&server->addr.sockAddr6, &server->addr.sockAddr6,
...@@ -1990,7 +1985,6 @@ ipv6_connect(struct TCP_Server_Info *server) ...@@ -1990,7 +1985,6 @@ ipv6_connect(struct TCP_Server_Info *server)
if (rc >= 0) if (rc >= 0)
connected = true; connected = true;
} }
}
if (!orig_port_error && !connected) { if (!orig_port_error && !connected) {
server->addr.sockAddr6.sin6_port = htons(RFC1001_PORT); 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