summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorCarlos López <clopez@suse.de>2026-03-13 15:20:39 +0300
committerSean Christopherson <seanjc@google.com>2026-05-13 21:04:47 +0300
commit9a7ff263922e7163d0def5d35948e6b6545449f6 (patch)
tree6216eddef3c6a3df81284f5cf4251fa89b13d205 /scripts/Makefile.thinlto
parentb7fbe9a1bf9ee6c967ef77d366ca58c35fcf1887 (diff)
downloadlinux-9a7ff263922e7163d0def5d35948e6b6545449f6.tar.xz
KVM: VFIO: clean up control flow in kvm_vfio_file_add()
The struct file that this function fgets() is always passed to fput() before returning, so use automatic cleanup via __free() to avoid several jumps to the end of the function. Similarly, use a mutex guard to completely remove the need to use gotos. Signed-off-by: Carlos López <clopez@suse.de> Reviewed-by: Alex Williamson <alex@shazbot.org> Link: https://patch.msgid.link/20260313122040.1413091-4-clopez@suse.de Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions