From: Anatol Belski Date: Thu, 18 Sep 2014 20:25:00 +0000 (+0200) Subject: remove useless condition 0 > unsigned X-Git-Tag: POST_NATIVE_TLS_MERGE^2~207 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=adf753159b534885b31586cd5b37bdf36d806df0;p=php remove useless condition 0 > unsigned --- diff --git a/ext/standard/file.c b/ext/standard/file.c index 20a956df9d..e153d62126 100644 --- a/ext/standard/file.c +++ b/ext/standard/file.c @@ -1210,7 +1210,7 @@ PHPAPI PHP_FUNCTION(fwrite) num_bytes = arg2len; } else { if (arg3 > 0) { - num_bytes = MAX(0, MIN((size_t)arg3, arg2len)); + num_bytes = MIN((size_t)arg3, arg2len); } else { num_bytes = 0; }