+ kernel-delayacctc-remove-redundant-checking-in-__delayacct_add_tsk.patch added to -mm tree
Subject: + kernel-delayacctc-remove-redundant-checking-in-__delayacct_add_tsk.patch added to -mm tree
To: [email protected]
From: [email protected]
Date: Tue, 17 Sep 2013 15:37:16 -0700
The patch titled
Subject: kernel/delayacct.c: remove redundant checking in __delayacct_add_tsk()
has been added to the -mm tree. Its filename is
kernel-delayacctc-remove-redundant-checking-in-__delayacct_add_tsk.patch
This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/kernel-delayacctc-remove-redundant-checking-in-__delayacct_add_tsk.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/kernel-delayacctc-remove-redundant-checking-in-__delayacct_add_tsk.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/SubmitChecklist when testing your code ***
The -mm tree is included into linux-next and is updated there every 3-4 working days
------------------------------------------------------
From: Chen Gang <[email protected]>
Subject: 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.
---
kernel/delayacct.c | 7 ------- 1 file changed, 7 deletions(-)
kernel/delayacct.c renamed from kernel/delayacct.c~kernel-delayacctc-remove-redundant-checking-in-__delayacct_add_tsk +0 -5
@@ -108,12 +108,6 @@ int __delayacct_add_tsk(struct taskstatsstruct timespec ts;cputime_t utime, stime, stimescaled, utimescaled; -/* Though tsk->delays accessed later, early exit avoids -* unnecessary returning of other data -*/ -if (!tsk->delays) - goto done;