aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorJakob Koschel <[email protected]>2022-03-31 09:12:18 +0000
committerJens Axboe <[email protected]>2022-03-31 12:05:15 +0000
commit4a3b666e0ea977dd40adb56c37a91370f76fa19e (patch)
treef2a21bfe79fba98ff47b6daa463afa7581696714 /net/unix/af_unix.c
parentblock: Fix the maximum minor value is blk_alloc_ext_minor() (diff)
downloadkernel-4a3b666e0ea977dd40adb56c37a91370f76fa19e.tar.gz
kernel-4a3b666e0ea977dd40adb56c37a91370f76fa19e.zip
block: use 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 [1]. Link: https://lore.kernel.org/all/CAHk-=wgRr_D8CB-D9Kg-c=EHreAsk5SqXPwr9Y7k9sA6cWXJ6w@mail.gmail.com/ [1] Signed-off-by: Jakob Koschel <[email protected]> Link: https://lore.kernel.org/r/[email protected] [axboe: move lookup to where return value is checked] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions