]> Git Repo - qemu.git/blobdiff - kvm-all.c
tcg-sparc: Fix qemu_ld/st to handle 32-bit host.
[qemu.git] / kvm-all.c
index b69537ae0bf75231cba92aae9d147c636aa42aad..92a71374ed1e040cef5ad70a6cb00adabf671dd4 100644 (file)
--- a/kvm-all.c
+++ b/kvm-all.c
@@ -1410,13 +1410,11 @@ int kvm_init(void)
     return 0;
 
 err:
-    if (s) {
-        if (s->vmfd >= 0) {
-            close(s->vmfd);
-        }
-        if (s->fd != -1) {
-            close(s->fd);
-        }
+    if (s->vmfd >= 0) {
+        close(s->vmfd);
+    }
+    if (s->fd != -1) {
+        close(s->fd);
     }
     g_free(s);
 
This page took 0.022064 seconds and 4 git commands to generate.