diff options
| author | Alex Williamson <alex.williamson@nvidia.com> | 2026-04-14 23:06:21 +0300 |
|---|---|---|
| committer | Alex Williamson <alex@shazbot.org> | 2026-04-21 21:01:21 +0300 |
| commit | b5b268cb7868b598e53eeebd36174c8b27d4cd86 (patch) | |
| tree | be2d0f50dd4a8cdf14dcebf78121512ea6c06612 /scripts/const_structs.checkpatch | |
| parent | 61fcb51fc9d576ec367e8aea9c03dc6a746e395e (diff) | |
| download | linux-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
