linux: remove redundant call to rewind()

It's already called in callee read_times()

PR-URL: https://github.com/libuv/libuv/pull/751
Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
This commit is contained in:
Krishnaraj Bhat 2016-03-05 23:06:44 +05:30 committed by Saúl Ibarra Corretgé
parent 2f02ae5f51
commit 365bdec434

View File

@ -596,10 +596,8 @@ int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) {
return -ENOMEM;
err = read_models(numcpus, ci);
if (err == 0) {
rewind(statfile_fp);
if (err == 0)
err = read_times(statfile_fp, numcpus, ci);
}
if (fclose(statfile_fp))
if (errno != EINTR && errno != EINPROGRESS)