Skip to content

Commit

Permalink
Rename error variable in cpu_request_core_type() for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTumultuousUnicornOfDarkness committed Aug 4, 2024
1 parent 673f4e4 commit 6b87429
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libcpuid/cpuid_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 6b87429

Please sign in to comment.