Skip to content

Commit

Permalink
sched/signal: There is no need to use sched_[un]lock
Browse files Browse the repository at this point in the history
Signed-off-by: hujun5 <[email protected]>
  • Loading branch information
hujun260 authored and anchao committed Oct 12, 2024
1 parent 1ff4987 commit 4c1c051
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions sched/signal/sig_dispatch.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ static int nxsig_queue_action(FAR struct tcb_s *stcb, siginfo_t *info)
irqstate_t flags;
int ret = OK;

sched_lock();
DEBUGASSERT(stcb != NULL && stcb->group != NULL);

/* Find the group sigaction associated with this signal */
Expand Down Expand Up @@ -203,7 +202,6 @@ static int nxsig_queue_action(FAR struct tcb_s *stcb, siginfo_t *info)
}
}

sched_unlock();
return ret;
}

Expand Down

0 comments on commit 4c1c051

Please sign in to comment.