Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3134628pxk; Mon, 21 Sep 2020 06:12:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw4AA6moT4dkAibr/DHyyjYuN37fm1h2qy20WMu+Q8vqFWMGj7CjSeqcIgdB1Qoys/rqMZx X-Received: by 2002:a05:6402:1710:: with SMTP id y16mr54357852edu.197.1600693979649; Mon, 21 Sep 2020 06:12:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600693979; cv=none; d=google.com; s=arc-20160816; b=cCtk8jXbFUxfwZ3XdnTzsx0kjzj95DlUNbmzobkn01Oc6CfMOk+lgE5FCT9KNpjvhh Blr7ouuxf4EPwAvdw913+R8A0wKLiz7DuRnOPgZ9wJ7Eaefuuko3yLtNj8fkh9/Rahp5 oaVqkXSFU5G8LSdA71LeA/tKWQV8HVQIfqU++HWgVkuLlynfWBWs2imdT0GJSTK4cnzD xHe2fEECdai1xwusixYOTz8ew5Esim3gY+oAK7byWxBMQk5lU5YKfjQFlmuArSoF+8TH jnpe9ocLJnKskNWNTRSy9NGhdkGHe6rzvb2urfLLOMzKAv/e7ZkH5NiC3pQeKmE6Y2dv tLmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=AoWsXff7DvAZOAPa+MxO2YrqAkCPJcu6qqzQ/Ae0rpM=; b=ed3c9JR72fABDHS3aPlKL/eLSw9A93PafoAIKpk/VHMH9zTG0kwWHspSkjEI3HUGti HT39pJFGaUjd82buQ8SZ4580zWpn7WbRJkyj0dZT11lVuozjVyu8HO1qrQfh2SgYsvKb F/nOICpchmF3kJmVrWvRxiC0rP8HWRtwzQ3gbqBCcHFvKHSphplshp5S2rB9MeM9yoOI ne3hxq8VFH4BIl1nCLGoKDzb10cny1aifurYwYMBn4PCXZj0rbZE+nPxiladUMsK1h60 UjMqhh0+bZHa8rPlivPhn9oBCF60ieaEkhJbB9Wd1x6qIFaW4jvJhaOdt96x7mLMwQpB X/bg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v19si8525323ejy.466.2020.09.21.06.12.33; Mon, 21 Sep 2020 06:12:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727443AbgIUNKu (ORCPT + 99 others); Mon, 21 Sep 2020 09:10:50 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:14200 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727428AbgIUNKq (ORCPT ); Mon, 21 Sep 2020 09:10:46 -0400 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 517EF94D4DDE6B6B7A45; Mon, 21 Sep 2020 21:10:40 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.487.0; Mon, 21 Sep 2020 21:10:30 +0800 From: Qinglang Miao To: Lorenzo Pieralisi , Rob Herring , Bjorn Helgaas CC: , , Qinglang Miao Subject: [PATCH -next] PCI: loongson: simplify the return expression of loongson_pci_probe() Date: Mon, 21 Sep 2020 21:10:54 +0800 Message-ID: <20200921131054.92797-1-miaoqinglang@huawei.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Simplify the return expression. Signed-off-by: Qinglang Miao --- drivers/pci/controller/pci-loongson.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/pci/controller/pci-loongson.c b/drivers/pci/controller/pci-loongson.c index 719c19fe2..48169b1e3 100644 --- a/drivers/pci/controller/pci-loongson.c +++ b/drivers/pci/controller/pci-loongson.c @@ -183,7 +183,6 @@ static int loongson_pci_probe(struct platform_device *pdev) struct device_node *node = dev->of_node; struct pci_host_bridge *bridge; struct resource *regs; - int err; if (!node) return -ENODEV; @@ -222,11 +221,7 @@ static int loongson_pci_probe(struct platform_device *pdev) bridge->ops = &loongson_pci_ops; bridge->map_irq = loongson_map_irq; - err = pci_host_probe(bridge); - if (err) - return err; - - return 0; + return pci_host_probe(bridge); } static struct platform_driver loongson_pci_driver = { -- 2.23.0