Patch removes redundant checks for PTE (Page Table Entry) because those conditions are already covered.
if (!(pte & _PAGE_PRESENT)) {
...
return FALSE;
}
if (!pte)
return FALSE;
The second pte check is redundant because it holds true only when pte is 0. if pte is 0 then (!(pte & _PAGE_PRESENT)) is true and it will return false. so there is no need for one more pte check.
Patch removes redundant checks for PTE (Page Table Entry) because those conditions are already covered.
The second pte check is redundant because it holds true only when pte is 0. if pte is 0 then (!(pte & _PAGE_PRESENT)) is true and it will return false. so there is no need for one more pte check.