Jakob Koschel 3302ffd44c rbd: replace usage of found with dedicated list iterator variable
To move the list iterator variable into the list_for_each_entry_*()
macro in the future it should be avoided to use the list iterator
variable after the loop body.

To *never* use the list iterator variable after the loop it was
concluded to use a separate iterator variable instead of a
found boolean.

This removes the need to use a found variable and simply checking if
the variable was set, can determine if the break/goto was hit.

Link: https://lore.kernel.org/all/CAHk-=wgRr_D8CB-D9Kg-c=EHreAsk5SqXPwr9Y7k9sA6cWXJ6w@mail.gmail.com/
Signed-off-by: Jakob Koschel <jakobkoschel@gmail.com>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2022-05-25 20:45:13 +02:00
..
2022-03-04 12:29:20 -07:00
2022-04-06 13:07:53 -06:00
2022-03-21 16:48:55 -07:00
2022-03-24 19:37:53 -07:00
2022-04-01 16:26:57 -07:00
2022-01-17 07:19:40 -07:00
2022-04-27 09:41:54 -07:00
2022-04-01 16:26:57 -07:00
2021-12-16 10:57:04 -07:00
2022-03-24 19:37:53 -07:00
2021-11-29 06:38:35 -07:00
2022-02-02 07:49:59 -07:00
2021-11-29 06:38:35 -07:00
2021-11-29 06:38:35 -07:00
2022-03-21 17:16:01 -07:00
2022-04-01 16:26:57 -07:00
2021-11-29 06:38:35 -07:00