]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu_agent: Remove obvious comments
authorPeter Krempa <pkrempa@redhat.com>
Thu, 25 Jul 2013 08:59:21 +0000 (10:59 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 31 Jul 2013 12:25:43 +0000 (14:25 +0200)
Most APIs in libvirt report errors, thus no need to state that
explicitly.

src/qemu/qemu_agent.c

index fc85e3e08d104352119dbb925520b538a455e0a2..2cd0ccc70972fc832623462dacbeb9c53fbadffd 100644 (file)
@@ -930,10 +930,8 @@ qemuAgentGuestSync(qemuAgentPtr mon)
 
     VIR_DEBUG("qemuAgentSend returned: %d", send_ret);
 
-    if (send_ret < 0) {
-        /* error reported */
+    if (send_ret < 0)
         goto cleanup;
-    }
 
     if (!sync_msg.rxObject) {
         virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
@@ -976,10 +974,8 @@ qemuAgentCommand(qemuAgentPtr mon,
 
     *reply = NULL;
 
-    if (qemuAgentGuestSync(mon) < 0) {
-        /* helper reported the error */
+    if (qemuAgentGuestSync(mon) < 0)
         return -1;
-    }
 
     memset(&msg, 0, sizeof(msg));