From 6b87429dc588b1616182058275f42275dad2e63a Mon Sep 17 00:00:00 2001 From: The Tumultuous Unicorn Of Darkness Date: Sun, 4 Aug 2024 15:12:20 +0200 Subject: [PATCH] Rename error variable in cpu_request_core_type() for consistency --- libcpuid/cpuid_main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libcpuid/cpuid_main.c b/libcpuid/cpuid_main.c index 1168564..9e7b15d 100644 --- a/libcpuid/cpuid_main.c +++ b/libcpuid/cpuid_main.c @@ -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; }