arch/sim/src/sim/up_exit.c: Appease a clang-check warning

clang-check complained like the following.
While this is not a real bug, it's easy to appease.

sim/up_exit.c:68:21: warning: Value stored to 'tcb' during its initialization is never read
  FAR struct tcb_s *tcb = this_task();
                    ^~~   ~~~~~~~~~~~
1 warning generated.
This commit is contained in:
YAMAMOTO Takashi 2020-08-04 10:37:35 +09:00 committed by Xiang Xiao
parent 123a31e3a2
commit 0b90ad3dd4

View File

@ -65,9 +65,9 @@
void up_exit(int status)
{
FAR struct tcb_s *tcb = this_task();
FAR struct tcb_s *tcb;
sinfo("TCB=%p exiting\n", tcb);
sinfo("TCB=%p exiting\n", this_task());
/* Destroy the task at the head of the ready to run list. */