]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
x86/mm: Remove duplicate check from build_cr3()
authorYuntao Wang <yuntao.wang@linux.dev>
Wed, 14 Aug 2024 12:46:45 +0000 (20:46 +0800)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 14 Aug 2024 17:41:40 +0000 (19:41 +0200)
commitd4245fd4a62931aebd1c5e6b7b6f51b6ef7ad087
tree627bb2ef82fe120cc082b577e658ba71e83d294c
parent1aa0c92f816b3a136cc3a31ef184206a19fc3c03
x86/mm: Remove duplicate check from build_cr3()

There is already a check for 'asid > MAX_ASID_AVAILABLE' in kern_pcid(), so
it is unnecessary to perform this check in build_cr3() right before calling
kern_pcid().

Remove it.

Signed-off-by: Yuntao Wang <yuntao.wang@linux.dev>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/20240814124645.51019-1-yuntao.wang@linux.dev
arch/x86/mm/tlb.c