From: Daniel Stenberg Date: Mon, 23 Sep 2019 08:55:43 +0000 (+0200) Subject: libssh: part of conditional expression is always true: !result X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9aed993da0e33e9aea27bfcd2ebcb9e7181d99c0;p=curl libssh: part of conditional expression is always true: !result PVS-Studio warning Fixed #4402 --- diff --git a/lib/vssh/libssh.c b/lib/vssh/libssh.c index 34ae792c3..cad8b3786 100644 --- a/lib/vssh/libssh.c +++ b/lib/vssh/libssh.c @@ -1999,7 +1999,7 @@ static CURLcode myssh_block_statemach(struct connectdata *conn, } } - if(!result && block) { + if(block) { curl_socket_t fd_read = conn->sock[FIRSTSOCKET]; /* wait for the socket to become ready */ (void) Curl_socket_check(fd_read, CURL_SOCKET_BAD,