qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] target-i386: Remove unused data from local array
@ 2014-03-20 21:30 Stefan Weil
  2014-03-20 21:54 ` Paolo Bonzini
  0 siblings, 1 reply; 2+ messages in thread
From: Stefan Weil @ 2014-03-20 21:30 UTC (permalink / raw)
  To: qemu-trivial; +Cc: Paolo Bonzini, Marcelo Tosatti, qemu-devel, kvm, Stefan Weil

Signed-off-by: Stefan Weil <sw@weilnetz.de>
---

This patch is based on a previous patch for the same file,
see http://patchwork.ozlabs.org/patch/330708/.

Regards
Stefan W.

 target-i386/kvm.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/target-i386/kvm.c b/target-i386/kvm.c
index 4389959..d17eea3 100644
--- a/target-i386/kvm.c
+++ b/target-i386/kvm.c
@@ -130,14 +130,13 @@ static const struct kvm_para_features {
     { KVM_CAP_NOP_IO_DELAY, KVM_FEATURE_NOP_IO_DELAY },
     { KVM_CAP_PV_MMU, KVM_FEATURE_MMU_OP },
     { KVM_CAP_ASYNC_PF, KVM_FEATURE_ASYNC_PF },
-    { -1, -1 }
 };
 
 static int get_para_features(KVMState *s)
 {
     int i, features = 0;
 
-    for (i = 0; i < ARRAY_SIZE(para_features) - 1; i++) {
+    for (i = 0; i < ARRAY_SIZE(para_features); i++) {
         if (kvm_check_extension(s, para_features[i].cap)) {
             features |= (1 << para_features[i].feature);
         }
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-03-20 21:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-20 21:30 [Qemu-devel] [PATCH] target-i386: Remove unused data from local array Stefan Weil
2014-03-20 21:54 ` Paolo Bonzini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).