diff options
| author | Anatol Belski <ab@php.net> | 2015-03-12 10:21:43 +0100 |
|---|---|---|
| committer | Anatol Belski <ab@php.net> | 2015-03-12 10:21:43 +0100 |
| commit | 1923c7a9b8a41195bf200584f1c6dc196402d3bc (patch) | |
| tree | 596b1774a8cf167ce6940de694283a863e019f82 /ext/ftp | |
| parent | 53b72587971a336e77a75129364f7de22397b090 (diff) | |
| download | php-git-1923c7a9b8a41195bf200584f1c6dc196402d3bc.tar.gz | |
simplify condition
Diffstat (limited to 'ext/ftp')
| -rw-r--r-- | ext/ftp/ftp.c | 6 |
1 files changed, 1 insertions, 5 deletions
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; |
