From 6020b951dff9584b9cfdb6819bdb1f6b0293db70 Mon Sep 17 00:00:00 2001 From: Paulo Zanoni Date: Mon, 23 Sep 2013 16:05:21 -0300 Subject: [PATCH] tests/pc8: fix supports_pc8_plus_residencies Bug caused by bad copy+paste+replace. Signed-off-by: Paulo Zanoni --- tests/pc8.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/pc8.c b/tests/pc8.c index e2fed8a..9070a6b 100644 --- a/tests/pc8.c +++ b/tests/pc8.c @@ -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; -- 2.7.4