diff options
| author | Ingo Molnar <[email protected]> | 2008-11-25 09:27:49 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2008-11-29 19:39:29 +0000 |
| commit | 1583715ddb61f822041807a0f18b3b4845e88c76 (patch) | |
| tree | cdc54eb7c0105197560641745059db7c20166eec /net/unix/af_unix.c | |
| parent | sched: prevent divide by zero error in cpu_avg_load_per_task (diff) | |
| download | kernel-1583715ddb61f822041807a0f18b3b4845e88c76.tar.gz kernel-1583715ddb61f822041807a0f18b3b4845e88c76.zip | |
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 <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
