diff mbox

KVM: mmu: Remove unused local variable

Message ID 4C07586B.4070709@cn.fujitsu.com (mailing list archive)
State New, archived
Headers show

Commit Message

Xiao Guangrong June 3, 2010, 7:23 a.m. UTC
None
diff mbox

Patch

diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c
index c16c4ca..a62e3ba 100644
--- a/arch/x86/kvm/mmu.c
+++ b/arch/x86/kvm/mmu.c
@@ -2049,7 +2049,7 @@  static void kvm_send_hwpoison_signal(struct kvm *kvm, gfn_t gfn)
 
 	/* Touch the page, so send SIGBUS */
 	hva = (void __user *)gfn_to_hva(kvm, gfn);
-	(void)copy_from_user(buf, hva, 1);
+	r = copy_from_user(buf, hva, 1);
 }
 
 static int kvm_handle_bad_page(struct kvm *kvm, gfn_t gfn, pfn_t pfn)