Re: [PATCH v2 06/13] xen/arm: Avoid code duplication in find_unallocated_memory

2024-04-09 Thread Luca Fancellu
> On 9 Apr 2024, at 14:38, Michal Orzel wrote: > > Hi Luca, > > On 09/04/2024 13:45, Luca Fancellu wrote: >> >> >> The function find_unallocated_memory is using the same code to >> loop through 3 structure of the same type, in order to avoid >> code duplication, rework the code to have

Re: [PATCH v2 06/13] xen/arm: Avoid code duplication in find_unallocated_memory

2024-04-09 Thread Michal Orzel
Hi Luca, On 09/04/2024 13:45, Luca Fancellu wrote: > > > The function find_unallocated_memory is using the same code to > loop through 3 structure of the same type, in order to avoid > code duplication, rework the code to have only one loop that > goes through all the structures. > >

[PATCH v2 06/13] xen/arm: Avoid code duplication in find_unallocated_memory

2024-04-09 Thread Luca Fancellu
The function find_unallocated_memory is using the same code to loop through 3 structure of the same type, in order to avoid code duplication, rework the code to have only one loop that goes through all the structures. Signed-off-by: Luca Fancellu --- v2: - Add comment in the loop inside