summaryrefslogtreecommitdiff
path: root/tools/perf/scripts
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2015-09-06 17:24:50 +0300
committerPaolo Bonzini <pbonzini@redhat.com>2015-09-06 17:26:21 +0300
commit29ecd66019047768080e8eeab4cd6582b28383a2 (patch)
tree161bb65694da16145353ff44f7e08b16a2840847 /tools/perf/scripts
parent4e33d1f0a145d48e8cf287954bbf791af8387cfb (diff)
downloadlinux-29ecd66019047768080e8eeab4cd6582b28383a2.tar.xz
KVM: x86: avoid uninitialized variable warning
This does not show up on all compiler versions, so it sneaked into the first 4.3 pull request. The fix is to mimic the logic of the "print sptes" loop in the "fill array" loop. Then leaf and root can be both initialized unconditionally. Note that "leaf" now points to the first unused element of the array, not the last filled element. Reported-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/perf/scripts')
0 files changed, 0 insertions, 0 deletions