From: Paolo Bonzini Date: Sun, 6 Sep 2015 14:24:50 +0000 (+0200) Subject: KVM: x86: avoid uninitialized variable warning X-Git-Tag: omap-for-v4.3/fixes-rc1~38^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=29ecd66019047768080e8eeab4cd6582b28383a2;p=pandora-kernel.git 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 Signed-off-by: Paolo Bonzini --- Reading git-diff-tree failed