提交 56874f01 编写于 作者: P Peter Krempa

qemu_agent: Remove obvious comments

Most APIs in libvirt report errors, thus no need to state that
explicitly.
上级 18a62916
......@@ -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));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册