tests/pc8: fix supports_pc8_plus_residencies

Bug caused by bad copy+paste+replace.

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
This commit is contained in:
Paulo Zanoni 2013-09-23 16:05:21 -03:00
parent 4d3e10d216
commit 6020b951df

View File

@ -103,13 +103,13 @@ static bool supports_pc8_plus_residencies(void)
uint64_t val;
rc = pread(msr_fd, &val, sizeof(uint64_t), MSR_PC8_RES);
if (!rc == sizeof(val))
if (rc != sizeof(val))
return false;
rc = pread(msr_fd, &val, sizeof(uint64_t), MSR_PC9_RES);
if (!rc == sizeof(val))
if (rc != sizeof(val))
return false;
rc = pread(msr_fd, &val, sizeof(uint64_t), MSR_PC10_RES);
if (!rc == sizeof(val))
if (rc != sizeof(val))
return false;
return true;