]> xenbits.xensource.com Git - libvirt.git/commitdiff
virresctrl: remove bogus virResetLastError
authorJán Tomko <jtomko@redhat.com>
Fri, 5 Oct 2018 14:34:51 +0000 (16:34 +0200)
committerJán Tomko <jtomko@redhat.com>
Tue, 9 Oct 2018 08:04:56 +0000 (10:04 +0200)
virFileReadValueUint does not log errors for non-existient files,
it merely returns -2.

Commit 12093f1 introduced this.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
src/util/virresctrl.c

index fb25ca84f05f59ab7e12ea807bfddd7ef5042945..df5b5124e6de34176d674cc1329166031833ef01 100644 (file)
@@ -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;
     }