Skip to content
Commit 99de7521 authored by Andrew Davis's avatar Andrew Davis Committed by Benjamin Cabé
Browse files

drivers: mm: rat: Simplify sys_mm_drv_page_phys_get logic



Instead of tracking if a matching address has been found and then
doing the translation after, we can loop until one is found and
do the translation and return immediately.

This saves having to keep a "found" variable, and makes the code
shorter and more readable IMHO. Do this here.

Signed-off-by: default avatarAndrew Davis <afd@ti.com>
parent 7949ffd7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment