yf13 commented on code in PR #12320:
URL: https://github.com/apache/nuttx/pull/12320#discussion_r1623177730


##########
sched/task/task_start.c:
##########
@@ -66,17 +66,18 @@
 void nxtask_start(void)
 {
   FAR struct tcb_s *tcb = this_task();
+  const uint8_t ttype = tcb->flags & TCB_FLAG_TTYPE_MASK;

Review Comment:
   it is to make `ttype` read-only in the rest of the function, why shall we 
remove it?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to