From: Paulo Zanoni Date: Mon, 23 Sep 2013 19:05:21 +0000 (-0300) Subject: tests/pc8: fix supports_pc8_plus_residencies X-Git-Tag: intel-gpu-tools-1.5~162 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6020b951dff9584b9cfdb6819bdb1f6b0293db70;p=profile%2Fextras%2Fintel-gpu-tools.git tests/pc8: fix supports_pc8_plus_residencies Bug caused by bad copy+paste+replace. Signed-off-by: Paulo Zanoni --- 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;