arm64: mm: Remove misleading pte_none() comment from ptep_try_set()

This comment was thoughtlessly copied from the x86 version and doesn't
apply to arm64. Remove it.

Reported-by: Will Deacon <will@kernel.org>
Signed-off-by: Tejun Heo <tj@kernel.org>
Link: https://lore.kernel.org/r/20260614210209.2371030-1-tj@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
This commit is contained in:
Tejun Heo 2026-06-14 11:02:09 -10:00 committed by Alexei Starovoitov
parent 2148794eea
commit 16deef8de0

View File

@ -1830,10 +1830,6 @@ static inline pte_t ptep_get_and_clear(struct mm_struct *mm,
return __ptep_get_and_clear(mm, addr, ptep);
}
/*
* Note: strictly-zero compare is narrower than pte_none(), but the gap is
* harmless: a fresh kernel PTE has no software bits set.
*/
static inline bool ptep_try_set(pte_t *ptep, pte_t new_pte)
{
pteval_t old = 0;