diff mbox

PCI: remove unnecessary check for mps in pcie_get_mps()

Message ID 1375436018-26732-1-git-send-email-wangyijing@huawei.com (mailing list archive)
State New, archived
Delegated to: Bjorn Helgaas
Headers show

Commit Message

Yijing Wang Aug. 2, 2013, 9:33 a.m. UTC
After commit 59875ae489, pcie_get_mps() will never
return Negative value. So remove the unnecessary check code.

Signed-off-by: Yijing Wang <wangyijing@huawei.com>
---
 drivers/pci/pci.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
index a8d5fd0..84a3c09 100644
--- a/drivers/pci/pci.c
+++ b/drivers/pci/pci.c
@@ -3586,8 +3586,6 @@  int pcie_set_readrq(struct pci_dev *dev, int rq)
 	if (pcie_bus_config == PCIE_BUS_PERFORMANCE) {
 		int mps = pcie_get_mps(dev);
 
-		if (mps < 0)
-			return mps;
 		if (mps < rq)
 			rq = mps;
 	}