提交 7bff646d 编写于 作者: J Ján Tomko

virresctrl: remove bogus virResetLastError

virFileReadValueUint does not log errors for non-existient files,
it merely returns -2.

Commit 12093f1f introduced this.
Signed-off-by: NJán Tomko <jtomko@redhat.com>
上级 f4ccf1ec
......@@ -638,7 +638,6 @@ virResctrlGetMonitorInfo(virResctrlInfoPtr resctrl)
VIR_INFO("The file '" SYSFS_RESCTRL_PATH "/info/L3_MON/num_rmids' "
"does not exist");
ret = 0;
virResetLastError();
goto cleanup;
} else if (rv < 0) {
/* Other failures are fatal, so just quit */
......@@ -653,7 +652,6 @@ virResctrlGetMonitorInfo(virResctrlInfoPtr resctrl)
* will not exist. */
VIR_DEBUG("File '" SYSFS_RESCTRL_PATH
"/info/L3_MON/max_threshold_occupancy' does not exist");
virResetLastError();
} else if (rv < 0) {
goto cleanup;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册