diff options
| author | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2025-09-13 19:57:36 +0900 |
|---|---|---|
| committer | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2025-09-13 19:59:21 +0900 |
| commit | 91bf158f8cdf6fd344d3035a13ac746d5846de33 (patch) | |
| tree | 3fdf465f1f7547bbc13580b449f6914c80684815 /drivers/firewire/core.h | |
| parent | 136d8a6f73fee0686d163dca91fdffb35e25f092 (diff) | |
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>
Diffstat (limited to 'drivers/firewire/core.h')
| -rw-r--r-- | drivers/firewire/core.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/firewire/core.h b/drivers/firewire/core.h index 083e39034c37..79eb57fd5812 100644 --- a/drivers/firewire/core.h +++ b/drivers/firewire/core.h @@ -27,6 +27,9 @@ struct fw_packet; /* -card */ +// This is the arbitrary value we use to indicate a mismatched gap count. +#define GAP_COUNT_MISMATCHED 0 + extern __printf(2, 3) void fw_err(const struct fw_card *card, const char *fmt, ...); extern __printf(2, 3) |
