Re: [PATCH] mlxsw: spectrum: Use 'bitmap_zalloc()' when applicable

From: Ido Schimmel
Date: Mon Oct 25 2021 - 02:31:13 EST


On Sun, Oct 24, 2021 at 09:17:51PM +0200, Christophe JAILLET wrote:
> Use 'bitmap_zalloc()' to simplify code, improve the semantic and avoid
> some open-coded arithmetic in allocator arguments.
>
> Also change the corresponding 'kfree()' into 'bitmap_free()' to keep
> consistency.
>
> Signed-off-by: Christophe JAILLET <christophe.jaillet@xxxxxxxxxx>

For net-next:

Reviewed-by: Ido Schimmel <idosch@xxxxxxxxxx>

Thanks