Commit 750212c2 authored by Adrian Warecki's avatar Adrian Warecki Committed by Carles Cufi
Browse files

mm: tlb: Remove ARG_UNUSED macro invocation

The flags parameter in the sys_mm_drv_map_page function is used, so the
ARG_UNUSED macro invocation is unnecessary. Remove this macro usage to
clean up the code and improvs code readability and maintainability.

Signed-off-by: default avatarAdrian Warecki <adrian.warecki@intel.com>
parent b38773f1
Loading
Loading
Loading
Loading
+0 −2
Changes for drivers/mm/mm_drv_intel_adsp_mtl_tlb.c: 0 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -187,8 +187,6 @@ int sys_mm_drv_map_page(void *virt, uintptr_t phys, uint32_t flags)
	uintptr_t pa = POINTER_TO_UINT(sys_cache_cached_ptr_get(UINT_TO_POINTER(phys)));
	uintptr_t va = POINTER_TO_UINT(sys_cache_cached_ptr_get(virt));

	ARG_UNUSED(flags);

	/* Make sure VA is page-aligned */
	CHECKIF(!sys_mm_drv_is_addr_aligned(va)) {
		ret = -EINVAL;