Simplify code.

Change-Id: If730d02312da01515ae53b5faaeb5d33419ec4ba
Signed-off-by: Piotr Fusik <piotr.fusik@intel.com>
This commit is contained in:
Piotr Fusik
2019-02-28 11:21:01 +01:00
committed by sys_ocldev
parent 295d45f5ef
commit 33a9d3160b
9 changed files with 53 additions and 79 deletions

View File

@@ -134,10 +134,7 @@ void WddmResidencyController::checkTrimCandidateCount() {
}
bool WddmResidencyController::checkTrimCandidateListCompaction() {
if (2 * trimCandidatesCount <= trimCandidateList.size()) {
return true;
}
return false;
return 2 * trimCandidatesCount <= trimCandidateList.size();
}
void WddmResidencyController::compactTrimCandidateList() {