kernel: mem_domain: minor typo fixes

Fixing a few minor typo fixes in kernel/mem_domain.c
and the respective documentation section.

Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
This commit is contained in:
Ioannis Glaropoulos 2018-10-29 12:55:41 +01:00 committed by Anas Nashif
commit 3e02f38a38
2 changed files with 9 additions and 5 deletions

View file

@ -118,7 +118,9 @@ void k_mem_domain_destroy(struct k_mem_domain *domain)
key = irq_lock();
/* Handle architecture specifc destroy only if it is the current thread*/
/* Handle architecture-specific destroy
* only if it is the current thread.
*/
if (_current->mem_domain_info.mem_domain == domain) {
_arch_mem_domain_destroy(domain);
}
@ -191,7 +193,9 @@ void k_mem_domain_remove_partition(struct k_mem_domain *domain,
/* Assert if not found */
__ASSERT(p_idx < max_partitions, "");
/* Handle architecture specifc remove only if it is the current thread*/
/* Handle architecture-specific remove
* only if it is the current thread.
*/
if (_current->mem_domain_info.mem_domain == domain) {
_arch_mem_domain_partition_remove(domain, p_idx);
}