From: Ingo Molnar Date: Tue, 25 Nov 2008 09:27:49 +0000 (+0100) Subject: sched, cpusets: fix warning in kernel/cpuset.c X-Git-Tag: v2.6.28-rc7~41^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1583715ddb61f822041807a0f18b3b4845e88c76;p=pandora-kernel.git sched, cpusets: fix warning in kernel/cpuset.c this warning: kernel/cpuset.c: In function ‘generate_sched_domains’: kernel/cpuset.c:588: warning: ‘ndoms’ may be used uninitialized in this function triggers because GCC does not recognize that ndoms stays uninitialized only if doms is NULL - but that flow is covered at the end of generate_sched_domains(). Help out GCC by initializing this variable to 0. (that's prudent anyway) Also, this function needs a splitup and code flow simplification: with 160 lines length it's clearly too long. Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed