]> Git Repo - qemu.git/blobdiff - qga/commands-posix.c
qga: fix compiler warnings (clang 5)
[qemu.git] / qga / commands-posix.c
index ba06be4c8634f8f5af21d41c22f200dfd7709935..284ecc6d7e4f116bc9dc2badf01475af1de359dc 100644 (file)
@@ -2125,9 +2125,11 @@ static void transfer_memory_block(GuestMemoryBlock *mem_blk, bool sys2memblk,
          * we think this VM does not support online/offline memory block,
          * any other solution?
          */
-        if (!dp && errno == ENOENT) {
-            result->response =
-                GUEST_MEMORY_BLOCK_RESPONSE_TYPE_OPERATION_NOT_SUPPORTED;
+        if (!dp) {
+            if (errno == ENOENT) {
+                result->response =
+                    GUEST_MEMORY_BLOCK_RESPONSE_TYPE_OPERATION_NOT_SUPPORTED;
+            }
             goto out1;
         }
         closedir(dp);
This page took 0.022856 seconds and 4 git commands to generate.