Re: [PATCH v4 12/19] selftests/resctrl: Remove "malloc_and_init_memory" param from run_fill_buf()
From: Reinette Chatre
Date: Thu Jul 13 2023 - 19:06:48 EST
Hi Ilpo,
On 7/13/2023 6:19 AM, Ilpo Järvinen wrote:
> run_fill_buf()'s malloc_and_init_memory parameter is always 1. There's
> also duplicated memory init code for malloc_and_init_memory == 0 case
> in fill_buf() which is unused.
>
> Remove the malloc_and_init_memory parameter and the duplicated mem init
> code.
>
> While at it, fix also a typo in run_fill_buf() prototype's argument.
>
> Co-developed-by: Fenghua Yu <fenghua.yu@xxxxxxxxx>
> Signed-off-by: Fenghua Yu <fenghua.yu@xxxxxxxxx>
> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@xxxxxxxxxxxxxxx>
Thank you.
Reviewed-by: Reinette Chatre <reinette.chatre@xxxxxxxxx>
Reinette