kernel/delayacct.c: remove redundant checking in __delayacct_add_tsk()
commit324d666a5378946dd271c71036792235ef360204
authorChen Gang <gang.chen@asianux.com>
Tue, 12 Nov 2013 23:08:42 +0000 (12 15:08 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 13 Nov 2013 03:09:12 +0000 (13 12:09 +0900)
tree05fe005c39cd58e81271a6c92176d552d173b44a
parentc725ee54c30b34427cb8fa68d1fe8804aca6d400
kernel/delayacct.c: remove redundant checking in __delayacct_add_tsk()

The wrapper function delayacct_add_tsk() already checked 'tsk->delays',
and __delayacct_add_tsk() has no another direct callers, so can remove the
redundancy checking code.

And the label 'done' is also useless, so remove it, too.

Signed-off-by: Chen Gang <gang.chen@asianux.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/delayacct.c