]> git.itanic.dy.fi Git - linux-stable/commit
PCI/MSI: Move D0 check into pci_msi_check_device()
authorAlexander Gordeev <agordeev@redhat.com>
Tue, 23 Sep 2014 20:25:11 +0000 (14:25 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 1 Oct 2014 18:21:14 +0000 (12:21 -0600)
commit27e20603c54ba633ed259284d006275f13c9f95b
treea4c9b78185402087be871b44dbb671cb17adff0c
parentad975ebad4c3ce8dcc7d0bb4db26ea5aca4cfc99
PCI/MSI: Move D0 check into pci_msi_check_device()

Both callers of pci_msi_check_device() check that the device is in D0
state, so move the check from the callers into pci_msi_check_device()
itself.

In pci_enable_msi_range(), note that pci_msi_check_device() never returns a
positive value any more, so the loop that called it until it returns zero
or negative is no longer necessary.

[bhelgaas: changelog, split to separate patch]
Signed-off-by: Alexander Gordeev <agordeev@redhat.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/msi.c