virhostcputest: linuxCPUStatsCompareFiles: Don't check return value of virBufferContentAndReset

The buffer won't encounter OOM condition nowadays

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Laine Stump <laine@redhat.com>
This commit is contained in:
Peter Krempa 2021-02-23 16:59:04 +01:00
parent 542b2b2914
commit e8d6a982b6

View File

@ -141,10 +141,7 @@ linuxCPUStatsCompareFiles(const char *cpustatfile,
goto fail;
}
if (!(actualData = virBufferContentAndReset(&buf))) {
virReportOOMError();
goto fail;
}
actualData = virBufferContentAndReset(&buf);
if (virTestCompareToFile(actualData, outfile) < 0)
goto fail;