]> git.ipfire.org Git - thirdparty/linux.git/commit
firewire: core: code refactoring to use idr_for_each_entry() macro instead of idr_for...
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Mon, 12 Aug 2024 23:52:09 +0000 (08:52 +0900)
committerTakashi Sakamoto <o-takashi@sakamocchi.jp>
Mon, 12 Aug 2024 23:52:09 +0000 (08:52 +0900)
commit6ec9e9260fe405a667e0dfbdf706483d648a8779
tree3f707b684441ef72bbd2c84c137976cb0c908cef
parent58ee62c2907f4a582edc98c811f23011c5607686
firewire: core: code refactoring to use idr_for_each_entry() macro instead of idr_for_each() function

This commit is a preparation to use xa_for_each() macro. Current
implementation uses idr_for_each() function and has a disadvantage to
replace with the macro. The IDR framework has idr_for_each_entry() macro
for the similar purpose. This commit replace the function with the
macro with minor code refactoring.

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