get_signal_to_deliver: use the cached ->signal/sighand values
authorOleg Nesterov <oleg@tv-sign.ru>
Wed, 30 Apr 2008 07:52:47 +0000 (00:52 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 30 Apr 2008 15:29:35 +0000 (08:29 -0700)
commitf6b76d4fb0039e077824be85ed4ac94e96beef86
tree70a9ccff1d0194ff3a5ab23837f5a2ad839af6ba
parentad16a4606939ce1bedb79c87e412467be803e990
get_signal_to_deliver: use the cached ->signal/sighand values

Cache the values of current->signal/sighand.  Shrinks .text a bit and makes
the code more readable.  Also, remove "sigset_t *mask", it is pointless
because in fact we save the constant offset.

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Cc: Roland McGrath <roland@redhat.com>
Cc: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/signal.c