[PATCH] sigprocmask: kill unneeded temp var

From: Oleg Nesterov
Date: Mon Jan 16 2006 - 11:43:49 EST


Cleanup, remove unneeded double copying of current->blocked.

Signed-off-by: Oleg Nesterov <oleg@xxxxxxxxxx>

--- 2.6.15/kernel/signal.c~ 2005-11-22 19:35:52.000000000 +0300
+++ 2.6.15/kernel/signal.c 2006-01-16 14:50:17.000000000 +0300
@@ -2004,10 +2004,11 @@ long do_no_restart_syscall(struct restar
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:
@@ -2024,8 +2025,7 @@ int sigprocmask(int how, sigset_t *set,
}
recalc_sigpending();
spin_unlock_irq(&current->sighand->siglock);
- if (oldset)
- *oldset = old_block;
+
return error;
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/