From 04557a119828ea42c55255411bbedde1016fea33 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sat, 31 Dec 2016 14:47:03 -0600 Subject: [PATCH] Eliminate a warning --- sched/sched/sched_unlock.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sched/sched/sched_unlock.c b/sched/sched/sched_unlock.c index 885e0c778c..d22a4b48bd 100644 --- a/sched/sched/sched_unlock.c +++ b/sched/sched/sched_unlock.c @@ -67,10 +67,14 @@ int sched_unlock(void) { FAR struct tcb_s *rtcb = this_task(); +#ifdef CONFIG_SMP int cpu; cpu = this_cpu(); rtcb = current_task(cpu); +#else + rtcb = this_task(); +#endif /* Check for some special cases: (1) rtcb may be NULL only during * early boot-up phases, and (2) sched_unlock() should have no