* [PATCH] PCI: remove unnecessary check for mps in pcie_get_mps()
@ 2013-08-02 9:33 Yijing Wang
0 siblings, 0 replies; only message in thread
From: Yijing Wang @ 2013-08-02 9:33 UTC (permalink / raw)
To: Bjorn Helgaas; +Cc: linux-pci, Hanjun Guo, jiang.liu, Yijing Wang
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 --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;
}
--
1.7.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2013-08-02 9:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-02 9:33 [PATCH] PCI: remove unnecessary check for mps in pcie_get_mps() Yijing Wang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).