firewire: core: use macro expression for not-registered state of BUS_MANAGER_ID
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Sat, 13 Sep 2025 10:57:37 +0000 (19:57 +0900)
committerTakashi Sakamoto <o-takashi@sakamocchi.jp>
Sat, 13 Sep 2025 10:59:21 +0000 (19:59 +0900)
commit2ba08d1bad79cc8d9c82f529adc01f27118e0ca7
treecd0d2402df0cb9eb9b5c3adcd2cfacd154768527
parent91bf158f8cdf6fd344d3035a13ac746d5846de33
firewire: core: use macro expression for not-registered state of BUS_MANAGER_ID

The value of BUS_MANAGER_ID register has 0x3f when no node_id is
registered. Current implementation uses hard-coded numeric literal but
in the case the macro expression is preferable since it is easy to
distinguish the state from node ID mask.

This commit applies the idea.

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