We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8eaee14 + 57beb23 commit d3df786Copy full SHA for d3df786
drivers/pci/hotplug/pnv_php.c
@@ -40,7 +40,6 @@ static void pnv_php_disable_irq(struct pnv_php_slot *php_slot,
40
bool disable_device)
41
{
42
struct pci_dev *pdev = php_slot->pdev;
43
- int irq = php_slot->irq;
44
u16 ctrl;
45
46
if (php_slot->irq > 0) {
@@ -59,7 +58,7 @@ static void pnv_php_disable_irq(struct pnv_php_slot *php_slot,
59
58
php_slot->wq = NULL;
60
}
61
62
- if (disable_device || irq > 0) {
+ if (disable_device) {
63
if (pdev->msix_enabled)
64
pci_disable_msix(pdev);
65
else if (pdev->msi_enabled)
0 commit comments