aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@tv-sign.ru>2006-03-23 03:00:49 -0800
committerLinus Torvalds <torvalds@g5.osdl.org>2006-03-23 07:38:15 -0800
commita26fd335b481e0bd14f4e7d1f5e7bb1138b1731f (patch)
tree5578fdb48025e7e2b54fb02c8c877858ad3e859a
parent40953ed87dd68742de0dd1bdecdcdfebfe1d69ae (diff)
downloadkernel_goldelico_gta04-a26fd335b481e0bd14f4e7d1f5e7bb1138b1731f.zip
kernel_goldelico_gta04-a26fd335b481e0bd14f4e7d1f5e7bb1138b1731f.tar.gz
kernel_goldelico_gta04-a26fd335b481e0bd14f4e7d1f5e7bb1138b1731f.tar.bz2
[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>
-rw-r--r--kernel/signal.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/signal.c b/kernel/signal.c
index dfb09ba..75f7341 100644
--- a/kernel/signal.c
+++ b/kernel/signal.c
@@ -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(&current->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(&current->sighand->siglock);
- if (oldset)
- *oldset = old_block;
+
return error;
}