From: Alexander Gordeev Date: Tue, 23 Sep 2014 20:25:11 +0000 (-0600) Subject: PCI/MSI: Move D0 check into pci_msi_check_device() X-Git-Tag: fixes-against-v3.18-rc2~139^2~4^2~8 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=27e20603c54ba633ed259284d006275f13c9f95b;p=pandora-kernel.git 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 Signed-off-by: Bjorn Helgaas --- Reading git-diff-tree failed