diff options
| author | 2026-09-20 16:14:59 +0900 | |
|---|---|---|
| committer | 2026-09-20 16:14:59 +0900 | |
| commit | 1f6877ccef68ce9fed7625a0de384c3576b803ca (patch) | |
| tree | fa787734f5c77eedcb285a74077630c23eef84f5 /scripts/Makefile.thinlto | |
| parent | firewire: cdev: refactor using scoped_guard() for get_info ioctl call (diff) | |
firewire: cdev: refactor copy_to_user() in get_info ioctl call
A non-zero return value from copy_to_user() is handled by returning
-EFAULT. Using scoped_guard() simplifies this handling, since it
eliminates the need for a local variable to store the return value and
check it after the locking primitive is released.
Refactor the code to remove the local variable.
Link: https://lore.kernel.org/r/20260920071501.77785-4-o-takashi@sakamocchi.jp
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
