]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commitdiff
kvm: remove unnecessary assignments
authorBlue Swirl <blauwirbel@gmail.com>
Sun, 4 Sep 2011 11:03:52 +0000 (11:03 +0000)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 10 Sep 2011 14:50:00 +0000 (14:50 +0000)
Avoid these warnings from clang analyzer:
/src/qemu/target-i386/kvm.c:772:5: warning: Value stored to 'cwd' is never read
    cwd = swd = twd = 0;
/src/qemu/target-i386/kvm.c:772:11: warning: Although the value stored to 'swd' is used in the enclosing expression, the value is never actually read from 'swd'
    cwd = swd = twd = 0;

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
target-i386/kvm.c

index 70ef74b80aba7d66c7383671fe607eb44fe562dc..22b1dd0665db481d330546650129efb8ea2f4add 100644 (file)
@@ -769,7 +769,7 @@ static int kvm_put_xsave(CPUState *env)
 
     xsave = qemu_memalign(4096, sizeof(struct kvm_xsave));
     memset(xsave, 0, sizeof(struct kvm_xsave));
-    cwd = swd = twd = 0;
+    twd = 0;
     swd = env->fpus & ~(7 << 11);
     swd |= (env->fpstt & 7) << 11;
     cwd = env->fpuc;