]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
PCI: switchtec: Replace manual locks with guard
authorErick Karanja <karanja99erick@gmail.com>
Thu, 28 Aug 2025 09:35:55 +0000 (12:35 +0300)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 28 Aug 2025 15:39:54 +0000 (10:39 -0500)
commitf2543da14dc2b9bee337f1f9466ab3fedae1cd84
tree3547f1fc7e2ba29d1b538ff4cc4e23ff8d1adc7c
parent8f5ae30d69d7543eee0d70083daf4de8fe15d585
PCI: switchtec: Replace manual locks with guard

Replace lock/unlock pairs with guards to simplify and tidy up the code.

Generated-by: Coccinelle SmPL
Signed-off-by: Erick Karanja <karanja99erick@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Logan Gunthorpe <logang@deltatee.com>
Link: https://patch.msgid.link/20250828093556.810911-1-karanja99erick@gmail.com
drivers/pci/switch/switchtec.c