Skip to content
Commit c0c8f778 authored by Luca Burelli's avatar Luca Burelli Committed by Benjamin Cabé
Browse files

llext: refactor llext_copy_region()



This commit adjusts the logic of the LLEXT memory allocation routine by:

 * defining 'align' and 'alloc' variables once and updating them in the
   following code;

 * swapping the condition, converting it to an 'if(IS_ENABLED(...))' and
   using a direct calculation for the size to make the code easier to
   read;

 * updating and extending a few comments.

No functional change is intended.

Signed-off-by: default avatarLuca Burelli <l.burelli@arduino.cc>
parent 219cde66
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment