mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-28 04:17:47 +00:00
PCI/MSI: Remove unnecessary temporary variable
The only use of "status" is to hold a value which is immediately returned, so just return and remove the variable directly. Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
This commit is contained in:
parent
56b72b4095
commit
5ec094057c
@ -920,7 +920,7 @@ EXPORT_SYMBOL(pci_msix_vec_count);
|
||||
**/
|
||||
int pci_enable_msix(struct pci_dev *dev, struct msix_entry *entries, int nvec)
|
||||
{
|
||||
int status, nr_entries;
|
||||
int nr_entries;
|
||||
int i, j;
|
||||
|
||||
if (!pci_msi_supported(dev, nvec))
|
||||
@ -951,8 +951,7 @@ int pci_enable_msix(struct pci_dev *dev, struct msix_entry *entries, int nvec)
|
||||
dev_info(&dev->dev, "can't enable MSI-X (MSI IRQ already assigned)\n");
|
||||
return -EINVAL;
|
||||
}
|
||||
status = msix_capability_init(dev, entries, nvec);
|
||||
return status;
|
||||
return msix_capability_init(dev, entries, nvec);
|
||||
}
|
||||
EXPORT_SYMBOL(pci_enable_msix);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user