mirror of
https://github.com/apache/nuttx.git
synced 2026-10-05 05:07:48 +00:00
sched/signal/sig_procmask.c: Remove an unnecessary variable
This commit is contained in:
parent
edf035ccc1
commit
fabfc9ab10
1 changed files with 1 additions and 3 deletions
|
|
@ -104,7 +104,6 @@
|
|||
int nxsig_procmask(int how, FAR const sigset_t *set, FAR sigset_t *oset)
|
||||
{
|
||||
FAR struct tcb_s *rtcb = this_task();
|
||||
sigset_t oldsigprocmask;
|
||||
irqstate_t flags;
|
||||
int ret = OK;
|
||||
|
||||
|
|
@ -112,10 +111,9 @@ int nxsig_procmask(int how, FAR const sigset_t *set, FAR sigset_t *oset)
|
|||
|
||||
/* Return the old signal mask if requested */
|
||||
|
||||
oldsigprocmask = rtcb->sigprocmask;
|
||||
if (oset != NULL)
|
||||
{
|
||||
*oset = oldsigprocmask;
|
||||
*oset = rtcb->sigprocmask;
|
||||
}
|
||||
|
||||
/* Modify the current signal mask if so requested */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue