summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>2026-04-29 12:34:42 +0300
committerTakashi Sakamoto <o-takashi@sakamocchi.jp>2026-04-29 14:30:33 +0300
commite05a76ae1507d19d62eb0011592be9efb42e06cd (patch)
tree452ef0c1046bb112e7629a192ac527685ed9d797 /scripts
parent254f49634ee16a731174d2ae34bc50bd5f45e731 (diff)
downloadlinux-e05a76ae1507d19d62eb0011592be9efb42e06cd.tar.xz
firewire: core: code refactoring for early return at client resource allocation
The add_client_resource() function returns zero at success or negative value at error. The critical section is already protected by scoped_guard() macro. In this case, the programming pattern of early return improves code readability. Link: https://lore.kernel.org/r/20260429093449.160545-2-o-takashi@sakamocchi.jp Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions