exec: consolidate 2 fast-paths
commit356d6d5058c8082b9e811838ab2fa27825c947e4
authorOleg Nesterov <oleg@tv-sign.ru>
Wed, 17 Oct 2007 06:27:23 +0000 (16 23:27 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 17 Oct 2007 15:42:53 +0000 (17 08:42 -0700)
treeb75accbc155f490f148a989e355dbdeb59c8607f
parentb2c903b8790467ae400f6992ac01bc8913b49e19
exec: consolidate 2 fast-paths

Now that we don't pre-allocate the new ->sighand, we can kill the first fast
path, it doesn't make sense any longer. At best, it can save one "list_empty()"
check but leads to the code duplication.

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Cc: Roland McGrath <roland@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/exec.c