lmb: use a common function to check if regions overlap or are adjacent
authorSughosh Ganu <sughosh.ganu@linaro.org>
Mon, 3 Mar 2025 13:32:30 +0000 (19:02 +0530)
committerTom Rini <trini@konsulko.com>
Tue, 18 Mar 2025 01:39:27 +0000 (19:39 -0600)
commitfa5b4f5a5f99d1f4ab995d07845d2bff50aaabb7
tree722afdcf26481388c7ed95b930da8151d79d3081
parentf5f0a0287134223c16ce64303df60c3708684e6a
lmb: use a common function to check if regions overlap or are adjacent

The functions to check if the two said regions are adjacent or overlap
are pretty similar in nature. Club the functionality into a single
function lmb_regions_check() and return the appropriate return value
to signify this aspect.

Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
lib/lmb.c