tests/pc8: fix supports_pc8_plus_residencies
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Mon, 23 Sep 2013 19:05:21 +0000 (16:05 -0300)
committerPaulo Zanoni <paulo.r.zanoni@intel.com>
Mon, 23 Sep 2013 19:17:41 +0000 (16:17 -0300)
Bug caused by bad copy+paste+replace.

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
tests/pc8.c

index e2fed8a..9070a6b 100644 (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;