From 27de65edc0f3d7e38982aa3f6e4bceed4ca0562b Mon Sep 17 00:00:00 2001 From: ligd Date: Fri, 29 Dec 2023 12:49:16 +0800 Subject: [PATCH] sched.h: fix CPU_EQUAL(s1, s2) write error Signed-off-by: ligd --- include/sched.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/sched.h b/include/sched.h index 968268db4d..aec9d3f06a 100644 --- a/include/sched.h +++ b/include/sched.h @@ -113,7 +113,7 @@ /* int CPU_EQUAL(FAR const cpu_set_t *set1, FAR const cpu_set_t *set2); */ -# define CPU_EQUAL(s1,s2) (*(s2) == *(s2)) +# define CPU_EQUAL(s1,s2) (*(s1) == *(s2)) /* REVISIT: Variably sized CPU sets are not supported */