[PATCH] firewire: core: use macro instead of magic number for mismatched gap count

From: Takashi Sakamoto

Date: Sat Dec 05 2026 - 03:02:55 EST


GAP_COUNT_MISMATCHED represents a gap count of 0. Use it instead of the
magic number.

Signed-off-by: Takashi Sakamoto <o-takashi@xxxxxxxxxxxxx>
---
drivers/firewire/core-card.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/firewire/core-card.c b/drivers/firewire/core-card.c
index df1e25548a5f..9b0a3e71a2af 100644
--- a/drivers/firewire/core-card.c
+++ b/drivers/firewire/core-card.c
@@ -548,7 +548,7 @@ static void bm_work(struct work_struct *work)
* may treat it as two, causing a gap count inconsistency
* again. Using a long bus reset prevents this.
*/
- reset_bus(card, card_gap_count != 0);
+ reset_bus(card, card_gap_count != GAP_COUNT_MISMATCHED);
/* Will allocate broadcast channel after the reset. */
} else {
struct fw_device *root_device = fw_node_get_device(root_node);

base-commit: 33fc113b2ccb4e34a504f59d0af017ac313ddc8a
--
2.55.0