session_server_ssh REFACTOR remove redundant ()
diff --git a/src/session_server_ssh.c b/src/session_server_ssh.c
index 402c91a..fa0dad3 100644
--- a/src/session_server_ssh.c
+++ b/src/session_server_ssh.c
@@ -399,7 +399,7 @@
}
usleep(NC_TIMEOUT_STEP);
- } while ((opts->auth_timeout) && (nc_timeouttime_cur_diff(&ts_timeout) >= 1));
+ } while (opts->auth_timeout && (nc_timeouttime_cur_diff(&ts_timeout) >= 1));
if (!reply) {
ERR(NULL, "Authentication timeout.");
@@ -1119,7 +1119,7 @@
}
usleep(NC_TIMEOUT_STEP);
- if ((opts->auth_timeout) && (nc_timeouttime_cur_diff(&ts_timeout) < 1)) {
+ if (opts->auth_timeout && (nc_timeouttime_cur_diff(&ts_timeout) < 1)) {
/* timeout */
ERR(session, "Failed to start \"netconf\" SSH subsystem for too long, disconnecting.");
break;
@@ -1221,7 +1221,7 @@
}
usleep(NC_TIMEOUT_STEP);
- if ((opts->auth_timeout) && (nc_timeouttime_cur_diff(&ts_timeout) < 1)) {
+ if (opts->auth_timeout && (nc_timeouttime_cur_diff(&ts_timeout) < 1)) {
/* timeout */
break;
}