kvm: libkvm: fix mungled default case for switch in kvm_arch_run
commit2c61372a12581af33c5f670cae860a19b92e5c5a
authorCarlo Marcelo Arenas Belon <carenas@sajinet.com.pe>
Fri, 28 Dec 2007 04:29:30 +0000 (27 22:29 -0600)
committerAvi Kivity <avi@qumranet.com>
Sun, 30 Dec 2007 12:29:36 +0000 (30 14:29 +0200)
tree90b5a3c992b8277e1fbc9fdcdbb7206222ef6481
parenta8fe3ff21b8d15e41ce738af939b66a8fbb4d7b0
kvm: libkvm: fix mungled default case for switch in kvm_arch_run

This patch corrects 03f1b5e137e7e4c8dd51dbaea6779be853f4fde0, that
modified the logic behind kvm_arch_run because of a mangled endif
which accidentally included the default entry for the switch.

kvm_arch_run as defined in 4f19bdea03330641fd48514ea84d1ed1bf431507
was affected by returning 0 by default instead of 1 and reporting
the following warning at compile time :

  libkvm-x86.c:201:9: warning: extra tokens at end of #endif directive

Signed-off-by: Carlo Marcelo Arenas Belon <carenas@sajinet.com.pe>
Signed-off-by: Avi Kivity <avi@qumranet.com>
kvm/libkvm/libkvm-x86.c