>From 193536b1cd96f646b66bea52bc46fdebcdcfc1cf Mon Sep 17 00:00:00 2001
From: Feng (Eric) Liu <[EMAIL PROTECTED]>
Date: Wed, 16 Apr 2008 07:05:22 -0400
Subject: [PATCH] KVM: trace: fix a redundant assignment.

Romove the redundant assignment, since the variable "extra"
will not be used again.

Signed-off-by: Feng (Eric) Liu <[EMAIL PROTECTED]>
---
 virt/kvm/kvm_trace.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/virt/kvm/kvm_trace.c b/virt/kvm/kvm_trace.c
index 5425440..030cfde 100644
--- a/virt/kvm/kvm_trace.c
+++ b/virt/kvm/kvm_trace.c
@@ -66,8 +66,7 @@ static void kvm_add_trace(void *probe_private, void
*call_data,
 
        extra           = va_arg(*args, u32);
        WARN_ON(!(extra <= KVM_TRC_EXTRA_MAX));
-       extra           = min_t(u32, extra, KVM_TRC_EXTRA_MAX);
-       rec.extra_u32   = extra;
+       rec.extra_u32   = min_t(u32, extra, KVM_TRC_EXTRA_MAX);
 
        rec.cycle_in    = p->cycle_in;
 
-- 
1.5.1

--Eric (Liu, Feng)

Attachment: 0001-KVM-trace-fix-a-redundant-assignment.patch
Description: 0001-KVM-trace-fix-a-redundant-assignment.patch

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel

Reply via email to