mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 21:57:43 +00:00
PCI: Remove unnecessary check for pcie_get_mps() failure
After 59875ae489
("PCI/core: Use PCI Express Capability accessors"),
pcie_get_mps() never returns an error, so don't bother to check for it.
No functional change.
[bhelgaas: changelog, fix pcie_get_mps() doc]
Signed-off-by: Yijing Wang <wangyijing@huawei.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
This commit is contained in:
parent
a58674ff83
commit
f67577118d
1 changed files with 0 additions and 3 deletions
|
@ -3525,8 +3525,6 @@ int pcie_set_readrq(struct pci_dev *dev, int rq)
|
||||||
if (pcie_bus_config == PCIE_BUS_PERFORMANCE) {
|
if (pcie_bus_config == PCIE_BUS_PERFORMANCE) {
|
||||||
int mps = pcie_get_mps(dev);
|
int mps = pcie_get_mps(dev);
|
||||||
|
|
||||||
if (mps < 0)
|
|
||||||
return mps;
|
|
||||||
if (mps < rq)
|
if (mps < rq)
|
||||||
rq = mps;
|
rq = mps;
|
||||||
}
|
}
|
||||||
|
@ -3543,7 +3541,6 @@ EXPORT_SYMBOL(pcie_set_readrq);
|
||||||
* @dev: PCI device to query
|
* @dev: PCI device to query
|
||||||
*
|
*
|
||||||
* Returns maximum payload size in bytes
|
* Returns maximum payload size in bytes
|
||||||
* or appropriate error value.
|
|
||||||
*/
|
*/
|
||||||
int pcie_get_mps(struct pci_dev *dev)
|
int pcie_get_mps(struct pci_dev *dev)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue