Commit 11e64757 authored by Matt Helsley's avatar Matt Helsley Committed by Linus Torvalds

[PATCH] Remove unecessary NULL check in kernel/acct.c

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: default avatarMatt Helsley <matthltc@us.ibm.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 7c12d811
...@@ -599,9 +599,7 @@ void acct_update_integrals(struct task_struct *tsk) ...@@ -599,9 +599,7 @@ void acct_update_integrals(struct task_struct *tsk)
*/ */
void acct_clear_integrals(struct task_struct *tsk) void acct_clear_integrals(struct task_struct *tsk)
{ {
if (tsk) { tsk->acct_stimexpd = 0;
tsk->acct_stimexpd = 0; tsk->acct_rss_mem1 = 0;
tsk->acct_rss_mem1 = 0; tsk->acct_vm_mem1 = 0;
tsk->acct_vm_mem1 = 0;
}
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment