]> git.ipfire.org Git - thirdparty/linux.git/commit
firewire: core: minor code refactoring to release client resource
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Mon, 12 Aug 2024 23:52:06 +0000 (08:52 +0900)
committerTakashi Sakamoto <o-takashi@sakamocchi.jp>
Mon, 12 Aug 2024 23:52:06 +0000 (08:52 +0900)
commit3b443fe087889cf6c9c133638f36da5617431703
treec8e90cfc5b0e81a96555b222e0d536191a2f307c
parent7a0a57cff296bbd90451fbf1f5614ffc48da73cd
firewire: core: minor code refactoring to release client resource

Current implementation checks and validates the result to find resource
entry two times. It is redundant.

This commit refactors the redundancy.

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