From: Viresh Kumar Date: Mon, 10 Jun 2013 10:57:19 +0000 (+0530) Subject: sched: Don't set sd->child to NULL when it is already NULL X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~61^2~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c75e01288ce9c9a6b7beb6b23c07d2e4d1db8c84;p=pandora-kernel.git sched: Don't set sd->child to NULL when it is already NULL Memory for sd is allocated with kzalloc_node() which will initialize its fields with zero. In build_sched_domain() we are setting sd->child to child even if child is NULL, which isn't required. Lets do it only if child isn't NULL. Signed-off-by: Viresh Kumar Signed-off-by: Peter Zijlstra Link: http://lkml.kernel.org/r/f4753a1730051341003ad2ad29a3229c7356678e.1370861520.git.viresh.kumar@linaro.org Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed