summaryrefslogtreecommitdiff
path: root/scripts/const_structs.checkpatch
diff options
context:
space:
mode:
authorAlex Williamson <alex.williamson@nvidia.com>2026-04-14 23:06:21 +0300
committerAlex Williamson <alex@shazbot.org>2026-04-21 21:01:21 +0300
commitb5b268cb7868b598e53eeebd36174c8b27d4cd86 (patch)
treebe2d0f50dd4a8cdf14dcebf78121512ea6c06612 /scripts/const_structs.checkpatch
parent61fcb51fc9d576ec367e8aea9c03dc6a746e395e (diff)
downloadlinux-b5b268cb7868b598e53eeebd36174c8b27d4cd86.tar.xz
vfio/virtio: Use guard() for migf->lock where applicable
Convert migf->lock acquisitions in virtiovf_disable_fd() and virtiovf_save_read() to use guard(). In virtiovf_save_read() this eliminates the out_unlock label and multiple goto paths by allowing direct returns, and removes the need for the done variable to double as an error carrier. 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-4-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