diff options
author | 2025-03-19 11:56:54 +0100 | |
---|---|---|
committer | 2025-04-09 20:47:30 +0200 | |
commit | 891146645e5d55166847b8e004a30fb9f8b03266 (patch) | |
tree | 83c022aacaff302170457741d663960eb7a245ae /scripts/lib/kdoc/kdoc_files.py | |
parent | PCI/MSI: Switch msi_capability_init() to guard(msi_desc_lock) (diff) | |
download | linux-rng-891146645e5d55166847b8e004a30fb9f8b03266.tar.xz linux-rng-891146645e5d55166847b8e004a30fb9f8b03266.zip |
PCI/MSI: Switch msix_capability_init() to guard(msi_desc_lock)
Split the lock protected functionality of msix_capability_init() out into a
helper function and use guard(msi_desc_lock) to replace the lock/unlock
pair.
Simplify the error path in the helper function by utilizing a custom
cleanup to get rid of the remaining gotos.
No functional change intended.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Link: https://lore.kernel.org/all/20250319105506.564105011@linutronix.de
Diffstat (limited to 'scripts/lib/kdoc/kdoc_files.py')
0 files changed, 0 insertions, 0 deletions