]> granicus.if.org Git - php/commitdiff
simplify condition
authorAnatol Belski <ab@php.net>
Thu, 12 Mar 2015 09:21:43 +0000 (10:21 +0100)
committerAnatol Belski <ab@php.net>
Thu, 12 Mar 2015 09:21:43 +0000 (10:21 +0100)
ext/ftp/ftp.c

index 3f01ea7896dc2c499b5cee64066e50d4717df7c4..970ba8f387c8306634b58d8515d171812f688fb8 100644 (file)
@@ -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;