mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 11:16:11 +00:00
[PATCH] sigprocmask: kill unneeded temp var
Cleanup, remove unneeded double copying of current->blocked. Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
40953ed87d
commit
a26fd335b4
1 changed files with 4 additions and 4 deletions
|
@ -2101,10 +2101,11 @@ long do_no_restart_syscall(struct restart_block *param)
|
|||
int sigprocmask(int how, sigset_t *set, sigset_t *oldset)
|
||||
{
|
||||
int error;
|
||||
sigset_t old_block;
|
||||
|
||||
spin_lock_irq(¤t->sighand->siglock);
|
||||
old_block = current->blocked;
|
||||
if (oldset)
|
||||
*oldset = current->blocked;
|
||||
|
||||
error = 0;
|
||||
switch (how) {
|
||||
case SIG_BLOCK:
|
||||
|
@ -2121,8 +2122,7 @@ int sigprocmask(int how, sigset_t *set, sigset_t *oldset)
|
|||
}
|
||||
recalc_sigpending();
|
||||
spin_unlock_irq(¤t->sighand->siglock);
|
||||
if (oldset)
|
||||
*oldset = old_block;
|
||||
|
||||
return error;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue