summaryrefslogtreecommitdiff
path: root/scripts/const_structs.checkpatch
diff options
context:
space:
mode:
authorAlex Williamson <alex.williamson@nvidia.com>2026-04-14 23:06:20 +0300
committerAlex Williamson <alex@shazbot.org>2026-04-21 21:01:20 +0300
commit61fcb51fc9d576ec367e8aea9c03dc6a746e395e (patch)
tree4dfa70b04509bd378790599c217c439ac0226493 /scripts/const_structs.checkpatch
parent903570835f12b7436ca0edb0a9ed351c0349121e (diff)
downloadlinux-61fcb51fc9d576ec367e8aea9c03dc6a746e395e.tar.xz
vfio/virtio: Use guard() for list_lock where applicable
Convert list_lock mutex acquisitions to use guard() and scoped_guard() where the lock scope aligns with the function or block scope. This simplifies virtiovf_get_data_buff_from_pos() by replacing goto-based unwinding with direct returns. Assisted-by: Claude:claude-opus-4-6 Signed-off-by: Alex Williamson <alex.williamson@nvidia.com> Reviewed-by: Yishai Hadas <yishaih@nvidia.com> Link: https://lore.kernel.org/r/20260414200625.3601509-3-alex.williamson@nvidia.com Signed-off-by: Alex Williamson <alex@shazbot.org>
Diffstat (limited to 'scripts/const_structs.checkpatch')
0 files changed, 0 insertions, 0 deletions