firewire: core: code refactoring to detect both IEEE 1394:1995 IRM and Canon MV5i
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Mon, 8 Sep 2025 01:21:06 +0000 (10:21 +0900)
committerTakashi Sakamoto <o-takashi@sakamocchi.jp>
Mon, 8 Sep 2025 01:26:26 +0000 (10:26 +0900)
commitca17601b15d12bc8c435a4068fa2f907501d9305
tree52e5b1cf4ed31bfea33c7a59a321ca8e82d16ac6
parent8c2d2fcd6b7934c7d694148b542760144a2a1b5a
firewire: core: code refactoring to detect both IEEE 1394:1995 IRM and Canon MV5i

The detection of IEEE 1394:1995 and Canon MV5i is just required within
some of the condition branches. In this case, these check can be
capsulated within these branches.

This commit refactors the checks.

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