diff options
| author | Yury Norov <yury.norov@gmail.com> | 2026-06-09 20:15:44 +0300 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-06-13 02:20:28 +0300 |
| commit | 8058d9755ecf1d35bdd08df1bdb58d21ba69b9ed (patch) | |
| tree | 54bb884629278fd00c2b636d33b3c257af798219 /tools/lib/python/kdoc/python_version.py | |
| parent | 0182b218a0744df05f41fb28d17c92fbbdb0cb10 (diff) | |
| download | linux-8058d9755ecf1d35bdd08df1bdb58d21ba69b9ed.tar.xz | |
net: hsr: simplify fill_last_seq_nrs()
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@nvidia.com>
Reviewed-by: Felix Maurer <fmaurer@redhat.com>
Link: https://patch.msgid.link/20260609171545.1051322-1-ynorov@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
