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:
parent
2f02ae5f51
commit
365bdec434
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user