From: Li Zefan Date: Fri, 29 Mar 2013 06:37:29 +0000 (+0800) Subject: sched/cpuacct: Remove redundant NULL checks in cpuacct_charge() X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~118^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=543bc0e76e6bb84300eaf9833edc5a481f788678;p=pandora-kernel.git sched/cpuacct: Remove redundant NULL checks in cpuacct_charge() This is a micro optimization for the hot path. - We don't need to check if @ca is NULL in parent_ca(). - We don't need to check if @ca is NULL in the beginning of the for loop. Signed-off-by: Li Zefan Acked-by: Peter Zijlstra Link: http://lkml.kernel.org/r/515536A9.5000700@huawei.com Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed