From: Matt Helsley Date: Sun, 25 Jun 2006 12:48:03 +0000 (-0700) Subject: [PATCH] Remove unecessary NULL check in kernel/acct.c X-Git-Tag: v2.6.18-rc1~975 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=11e64757f9fb32f13f51596bbf01988f42fca764;p=linux-2.6-omap-h63xx.git [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: Matt Helsley Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/kernel/acct.c b/kernel/acct.c index 6802020e0ce..44dd6bd6351 100644 --- a/kernel/acct.c +++ b/kernel/acct.c @@ -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; }