mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 11:35:19 +00:00
qemu_agent: Remove obvious comments
Most APIs in libvirt report errors, thus no need to state that explicitly.
This commit is contained in:
parent
18a629167c
commit
56874f0191
@ -930,10 +930,8 @@ qemuAgentGuestSync(qemuAgentPtr mon)
|
|||||||
|
|
||||||
VIR_DEBUG("qemuAgentSend returned: %d", send_ret);
|
VIR_DEBUG("qemuAgentSend returned: %d", send_ret);
|
||||||
|
|
||||||
if (send_ret < 0) {
|
if (send_ret < 0)
|
||||||
/* error reported */
|
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
|
||||||
|
|
||||||
if (!sync_msg.rxObject) {
|
if (!sync_msg.rxObject) {
|
||||||
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
|
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
|
||||||
@ -976,10 +974,8 @@ qemuAgentCommand(qemuAgentPtr mon,
|
|||||||
|
|
||||||
*reply = NULL;
|
*reply = NULL;
|
||||||
|
|
||||||
if (qemuAgentGuestSync(mon) < 0) {
|
if (qemuAgentGuestSync(mon) < 0)
|
||||||
/* helper reported the error */
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
|
||||||
|
|
||||||
memset(&msg, 0, sizeof(msg));
|
memset(&msg, 0, sizeof(msg));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user