commit | 99de7521ca1d3c31119dfea4674bd7060b8ebf19 | [log] [tgz] |
---|---|---|
author | Andrew Davis <afd@ti.com> | Wed Feb 12 09:15:29 2025 -0600 |
committer | Benjamin Cabé <kartben@gmail.com> | Wed Mar 12 07:13:22 2025 +0100 |
tree | 0f999e4cc1a925496be54012ad7c633312a3884e | |
parent | 7949ffd7d8f0c766f8285ccde38e337a7f5ef40f [diff] |
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: Andrew Davis <afd@ti.com>