Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove 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. Signed-off-by: Likhitha Korrapati <likhitha@linux.ibm.com>
- Loading branch information