xiaoxiang781216 commented on code in PR #12283:
URL: https://github.com/apache/nuttx/pull/12283#discussion_r1590003270


##########
sched/signal/sig_tgkill.c:
##########
@@ -85,14 +85,9 @@ int tgkill(pid_t pid, pid_t tid, int signo)
 
   if (!GOOD_SIGNO(signo))
     {
-      ret = -EINVAL;
-      goto errout;
+      return -EINVAL;

Review Comment:
   let keep jump to errout to set errno.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to