From: Anatol Belski Date: Thu, 12 Mar 2015 09:21:43 +0000 (+0100) Subject: simplify condition X-Git-Tag: PRE_PHP7_NSAPI_REMOVAL~690 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1923c7a9b8a41195bf200584f1c6dc196402d3bc;p=php simplify condition --- diff --git a/ext/ftp/ftp.c b/ext/ftp/ftp.c index 3f01ea7896..970ba8f387 100644 --- a/ext/ftp/ftp.c +++ b/ext/ftp/ftp.c @@ -321,11 +321,7 @@ ftp_login(ftpbuf_t *ftp, const char *user, const char *pass) i = php_poll2(&p, 1, 300); - if (i > 0) { - retry = 1; - } else { - retry = 0; - } + retry = i > 0; } break;