]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
firewire: core: code refactoring for the case of generation mismatch
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Thu, 18 Sep 2025 23:54:45 +0000 (08:54 +0900)
committerTakashi Sakamoto <o-takashi@sakamocchi.jp>
Thu, 18 Sep 2025 23:58:34 +0000 (08:58 +0900)
commite31b990cafd49a8c56eac55094c1a783f5826b47
tree9b6dde3205639e31428cde8f7dc1bc853b199a50
parent52561ebfae9dc9871d6ca2c9e72a4a4e246c4476
firewire: core: code refactoring for the case of generation mismatch

Current implementation stores the bus generation at which the bus manager
contending procedure finishes. The condition for the procedure is the
mismatch of the stored generation against current bus generation.

This commit refactors the code for the contending procedure. Two existing
branches are put into a new branch to detect the generation mismatch, thus
the most of change is indentation.

Link: https://lore.kernel.org/r/20250918235448.129705-4-o-takashi@sakamocchi.jp
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
drivers/firewire/core-card.c