From 2c1c2b29ba050178b0b023b9921d7f881de528f1 Mon Sep 17 00:00:00 2001 From: Unsung Lee Date: Wed, 3 Jul 2024 18:02:09 +0900 Subject: cpu-sched: Get return value from the non-void function Get return value from non-void function to check error. Change-Id: Idbd8382449368fb5e87f986f1c72345c715c8dcb Signed-off-by: Unsung Lee --- src/resource-optimizer/cpu/cpu-sched.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/resource-optimizer/cpu/cpu-sched.c b/src/resource-optimizer/cpu/cpu-sched.c index 968fd89d..7ff1b521 100644 --- a/src/resource-optimizer/cpu/cpu-sched.c +++ b/src/resource-optimizer/cpu/cpu-sched.c @@ -328,8 +328,7 @@ static int load_cpu_sched_config(void) static int cpu_sched_parse_config(struct cpu_sched *data) { load_cpu_affinity_config(data); - load_cpu_sched_config(); - return RESOURCED_ERROR_NONE; + return load_cpu_sched_config(); } static int cpu_sched_write_coreset(struct cpuset_info *set) -- cgit v1.2.3