]> Git Repo - linux.git/commit
signals: clean dequeue_signal from excess checks and assignments
authorPavel Emelyanov <[email protected]>
Wed, 30 Apr 2008 07:52:40 +0000 (00:52 -0700)
committerLinus Torvalds <[email protected]>
Wed, 30 Apr 2008 15:29:34 +0000 (08:29 -0700)
commitc5363d03637885310f1101b95cbbd26d067b4c8d
treee22fd822f03dd5437c53bf459ae986723aaa1613
parent93585eeaf3d42d608cd7232e7420c93fb676bba1
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 <[email protected]>
Cc: Oleg Nesterov <[email protected]>
Cc: Roland McGrath <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
kernel/signal.c
This page took 0.080227 seconds and 4 git commands to generate.