Skip to content

Commit

Permalink
[PATCH] Remove unecessary NULL check in kernel/acct.c
Browse files Browse the repository at this point in the history
copy_process() appears to be the only caller of acct_clear_integrals() and
does not pass in NULL task pointers.  Remove the unecessary check.

Signed-off-by: Matt Helsley <matthltc@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Matt Helsley authored and Linus Torvalds committed Jun 25, 2006
1 parent 7c12d81 commit 11e6475
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions kernel/acct.c
Original file line number Diff line number Diff line change
Expand Up @@ -599,9 +599,7 @@ void acct_update_integrals(struct task_struct *tsk)
*/
void acct_clear_integrals(struct task_struct *tsk)
{
if (tsk) {
tsk->acct_stimexpd = 0;
tsk->acct_rss_mem1 = 0;
tsk->acct_vm_mem1 = 0;
}
tsk->acct_stimexpd = 0;
tsk->acct_rss_mem1 = 0;
tsk->acct_vm_mem1 = 0;
}

0 comments on commit 11e6475

Please sign in to comment.