You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ag...@apache.org on 2020/10/24 13:10:28 UTC
[incubator-nuttx] branch master updated:
sched/signal/sig_procmask.c: Remove an unnecessary variable
This is an automated email from the ASF dual-hosted git repository.
aguettouche pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new fabfc9a sched/signal/sig_procmask.c: Remove an unnecessary variable
fabfc9a is described below
commit fabfc9ab10d41abd976c6b1ba8923ee70d056573
Author: Yoshinori Sugino <ys...@gmail.com>
AuthorDate: Sat Oct 24 09:32:37 2020 +0900
sched/signal/sig_procmask.c: Remove an unnecessary variable
---
sched/signal/sig_procmask.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/sched/signal/sig_procmask.c b/sched/signal/sig_procmask.c
index c46fefa..0ff9921 100644
--- a/sched/signal/sig_procmask.c
+++ b/sched/signal/sig_procmask.c
@@ -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 */