summaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorPavel Emelyanov <xemul@openvz.org>2008-04-30 09:52:40 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2008-04-30 17:29:34 +0200
commitc5363d03637885310f1101b95cbbd26d067b4c8d (patch)
treee22fd822f03dd5437c53bf459ae986723aaa1613 /Documentation
parentsignals: consolidate checks for whether or not to ignore a signal (diff)
downloadlinux-c5363d03637885310f1101b95cbbd26d067b4c8d.tar.xz
linux-c5363d03637885310f1101b95cbbd26d067b4c8d.zip
signals: clean dequeue_signal from excess checks and assignments
The signr variable may be declared without initialization - it is set ro the return value from __dequeue_signal() right at the function beginning. Besides, after recalc_sigpending() two checks for signr to be not 0 may be merged into one. Both if-s become easier to read. Thanks to Oleg for pointing out mistakes in the first version of this patch. Signed-off-by: Pavel Emelyanov <xemul@openvz.org> Cc: Oleg Nesterov <oleg@tv-sign.ru> Cc: Roland McGrath <roland@redhat.com> Cc: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions