]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
firewire: core: use macro expression for gap count mismatch
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Sat, 13 Sep 2025 10:57:36 +0000 (19:57 +0900)
committerTakashi Sakamoto <o-takashi@sakamocchi.jp>
Sat, 13 Sep 2025 10:59:21 +0000 (19:59 +0900)
commit91bf158f8cdf6fd344d3035a13ac746d5846de33
tree3fdf465f1f7547bbc13580b449f6914c80684815
parent136d8a6f73fee0686d163dca91fdffb35e25f092
firewire: core: use macro expression for gap count mismatch

The gap_count field is assigned to zero when mismatch is detected. In such
case, the macro expression is preferable since it is easy to understand
the situation.

This commit applies the idea.

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