]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kernel/delayacct.c: remove redundant checking in __delayacct_add_tsk()
authorChen Gang <gang.chen@asianux.com>
Tue, 5 Nov 2013 05:56:07 +0000 (16:56 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 5 Nov 2013 05:56:07 +0000 (16:56 +1100)
commit26ed30f31196c2c4d57ebdb640a9e151a3ade2ca
tree85d611c66056d9adff06eae3f12dce2fe3ddb63c
parent03c4d2b5fa692b23a4f9a56317999fdaf5aaf8d8
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>
kernel/delayacct.c