Re: [PATCH] net: hsr: simplify fill_last_seq_nrs()

From: Felix Maurer

Date: Thu Jun 11 2026 - 04:46:16 EST


On Tue, Jun 09, 2026 at 01:15:44PM -0400, Yury Norov wrote:
> The function checks the HSR_PT_SLAVE_A and HSR_PT_SLAVE_B bitmaps
> for emptiness right before calling find_last_bit().
>
> This pass may be avoided, because if the bitmap is empty, the
> find_last_bit() returns >= HSR_SEQ_BLOCK_SIZE
>
> Signed-off-by: Yury Norov <ynorov@xxxxxxxxxx>

Reviewed-by: Felix Maurer <fmaurer@xxxxxxxxxx>

Looks good to me, thank you!