PCI/MSI: Remove duplicated to_pci_dev() conversion
authorChris Li <chrisl@kernel.org>
Tue, 17 Jun 2025 23:57:30 +0000 (16:57 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 18 Jun 2025 18:50:04 +0000 (20:50 +0200)
commit4a089c0b3f55b400689a5c35f7dfa0a74c363dae
tree47e8c45a8332d177c49df50c3ccade4740379f96
parent19272b37aa4f83ca52bdf9c16d5d81bdd1354494
PCI/MSI: Remove duplicated to_pci_dev() conversion

In pci_msi_update_mask(), "lock = &to_pci_dev()" does the to_pci_dev()
lookup, and there's another one buried inside msi_desc_to_pci_dev().

Introduce a local variable to remove that duplication.

Signed-off-by: Chris Li <chrisl@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/all/20250617-pci-msi-avoid-dup-pcidev-v1-1-ed75b0419023@kernel.org
drivers/pci/msi/msi.c