1
0
Fork 0
mirror of https://github.com/anrieff/libcpuid synced 2024-12-26 16:55:45 +00:00

Rename error variable in cpu_request_core_type() for consistency

This commit is contained in:
The Tumultuous Unicorn Of Darkness 2024-08-04 15:12:20 +02:00
parent 673f4e45ff
commit 6b87429dc5
No known key found for this signature in database
GPG key ID: 1E55EE2EFF18BC1A

View file

@ -1762,14 +1762,14 @@ int cpu_identify_all(struct cpu_raw_data_array_t* raw_array, struct system_id_t*
int cpu_request_core_type(cpu_purpose_t purpose, struct cpu_raw_data_array_t* raw_array, struct cpu_id_t* data)
{
int error;
int r;
logical_cpu_t logical_cpu = 0;
struct cpu_raw_data_array_t my_raw_array;
struct internal_id_info_t throwaway;
if (!raw_array) {
if ((error = cpuid_get_all_raw_data(&my_raw_array)) < 0)
return cpuid_set_error(error);
if ((r = cpuid_get_all_raw_data(&my_raw_array)) < 0)
return r;
raw_array = &my_raw_array;
}