Commit d4245fd4 authored by Yuntao Wang's avatar Yuntao Wang Committed by Thomas Gleixner
Browse files

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: default avatarYuntao Wang <yuntao.wang@linux.dev>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/20240814124645.51019-1-yuntao.wang@linux.dev
parent 1aa0c92f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment