From patchwork Fri Aug 2 09:33:38 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yijing Wang X-Patchwork-Id: 264245 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id EB9682C0091 for ; Fri, 2 Aug 2013 19:33:58 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758264Ab3HBJd6 (ORCPT ); Fri, 2 Aug 2013 05:33:58 -0400 Received: from szxga02-in.huawei.com ([119.145.14.65]:7185 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758261Ab3HBJd5 (ORCPT ); Fri, 2 Aug 2013 05:33:57 -0400 Received: from 172.24.2.119 (EHLO szxeml214-edg.china.huawei.com) ([172.24.2.119]) by szxrg02-dlp.huawei.com (MOS 4.3.4-GA FastPath queued) with ESMTP id BFL32613; Fri, 02 Aug 2013 17:33:56 +0800 (CST) Received: from SZXEML450-HUB.china.huawei.com (10.82.67.193) by szxeml214-edg.china.huawei.com (172.24.2.29) with Microsoft SMTP Server (TLS) id 14.1.323.7; Fri, 2 Aug 2013 17:33:56 +0800 Received: from localhost (10.135.76.69) by szxeml450-hub.china.huawei.com (10.82.67.193) with Microsoft SMTP Server id 14.1.323.7; Fri, 2 Aug 2013 17:33:44 +0800 From: Yijing Wang To: Bjorn Helgaas CC: , Hanjun Guo , , Yijing Wang Subject: [PATCH] PCI: remove unnecessary check for mps in pcie_get_mps() Date: Fri, 2 Aug 2013 17:33:38 +0800 Message-ID: <1375436018-26732-1-git-send-email-wangyijing@huawei.com> X-Mailer: git-send-email 1.7.11.msysgit.1 MIME-Version: 1.0 X-Originating-IP: [10.135.76.69] X-CFilter-Loop: Reflected Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org After commit 59875ae489, pcie_get_mps() will never return Negative value. So remove the unnecessary check code. Signed-off-by: Yijing Wang --- 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; }