diff options
| author | 2026-03-13 13:20:39 +0100 | |
|---|---|---|
| committer | 2026-05-13 11:04:47 -0700 | |
| commit | 9a7ff263922e7163d0def5d35948e6b6545449f6 (patch) | |
| tree | 6216eddef3c6a3df81284f5cf4251fa89b13d205 /tools/lib/python/kdoc/parse_data_structs.py | |
| parent | Merge branch 'kvm-apx-prepare' into HEAD (diff) | |
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 'tools/lib/python/kdoc/parse_data_structs.py')
0 files changed, 0 insertions, 0 deletions
