x86: remove NULL check in arch_user_mode_enter
These days all threads are always a member of a memory domain, remove this NULL check as it won't ever be false. Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
parent
f6c64e92ce
commit
507ebd541a
1 changed files with 1 additions and 4 deletions
|
@ -118,10 +118,7 @@ FUNC_NORETURN void arch_user_mode_enter(k_thread_entry_t user_entry,
|
|||
/* Apply memory domain configuration, if assigned. Threads that
|
||||
* started in user mode already had this done via z_setup_new_thread()
|
||||
*/
|
||||
if (_current->mem_domain_info.mem_domain != NULL) {
|
||||
z_x86_apply_mem_domain(_current,
|
||||
_current->mem_domain_info.mem_domain);
|
||||
}
|
||||
z_x86_apply_mem_domain(_current, _current->mem_domain_info.mem_domain);
|
||||
k_spin_unlock(&z_mem_domain_lock, key);
|
||||
|
||||
#ifndef CONFIG_X86_KPTI
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue