Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2953694pxk; Mon, 21 Sep 2020 01:06:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyXW+PWN//Pyz/bmTjTeX8GeRyJWGdkEii8QRHiUflarszoHUwyh/oemuT4J7wSRJVe4dNL X-Received: by 2002:aa7:cf0e:: with SMTP id a14mr51462475edy.81.1600675576361; Mon, 21 Sep 2020 01:06:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600675576; cv=none; d=google.com; s=arc-20160816; b=aqDZIByH53x+vaR2GG2F++umaaoYbtyYpm3+KkV7aqjC5I/dQFuYGpT/4ZSprYuBM5 NwAx/ms8ot7l3ekrg/c4voDdbTNAE7u8BhjcJrIs33t7LSsWIDl/kuhLOPI3NR3qLMFy CIvYDHcYsfaig9dKQDU3kTHBMCEOW++Pdpt0kGIXrI6kmxb88BQ7SapGsze/EylSWpFr LjJKpjOkIdFAWSSLSUda0WaewO8KkiRpIRNw6iTnrPmEw5/gqzkFX25aZpqJ0aB3Xgci uy/gcUKjxpXJ2wrMclk1+nYoZxAM8sBjOrT5Waql5L1IE8QQ5VbeAcLl07Z1pcRLx30z oL7Q== 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=canEcUQkR2DBVqbdszICfxinYfwXom8E75puuo59slE=; b=L+4iUsfoy9SUc7W/rRJ+gf+D5na8nbjJ0iaY9hQfsxEppiUhDmPhgWfnjsbPfyqpNy RG6CjTooNMUVA3fxjNyUUSGQF4vDB8PAeORsVXTLyvMPCznqy/JmJaQr4lTywoC9nreF BeG/U/22UkHSiuJbhdr5emX601kprjVyAzGq5LteMxnTAC5H1S7WLJk2YnFeiUpY9CbC j3jdkKqQIVolm39EoRsJV5TjEK+OUncbb+VWp1peojFwFxA94gMvssFVxsgfVbWA8Iap Ulx/TksvD5L8zNl/VcdovWJanR1C/cOKUU/uLT1PN6qHrqzfFnQx6EBn7NCwJzmmwR5Z 3EWw== 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 bf1si7550122edb.565.2020.09.21.01.05.53; Mon, 21 Sep 2020 01:06:16 -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 S1726979AbgIUIC4 (ORCPT + 99 others); Mon, 21 Sep 2020 04:02:56 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:48252 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726918AbgIUICc (ORCPT ); Mon, 21 Sep 2020 04:02:32 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 5FC9A767C41818FDA2E5; Mon, 21 Sep 2020 16:02:29 +0800 (CST) Received: from huawei.com (10.175.113.32) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.487.0; Mon, 21 Sep 2020 16:02:22 +0800 From: Liu Shixin To: Karthikeyan Mitran , Hou Zhiqiang , Lorenzo Pieralisi , "Rob Herring" , Bjorn Helgaas CC: , , Liu Shixin Subject: [PATCH -next] PCI: mobiveil: simplify the return expression of mobiveil_pcie_init_irq_domain Date: Mon, 21 Sep 2020 16:24:47 +0800 Message-ID: <20200921082447.2591877-1-liushixin2@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.32] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Simplify the return expression. Signed-off-by: Liu Shixin --- drivers/pci/controller/mobiveil/pcie-mobiveil-host.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/pci/controller/mobiveil/pcie-mobiveil-host.c b/drivers/pci/controller/mobiveil/pcie-mobiveil-host.c index 3adec419a45b..a2632d02ce8f 100644 --- a/drivers/pci/controller/mobiveil/pcie-mobiveil-host.c +++ b/drivers/pci/controller/mobiveil/pcie-mobiveil-host.c @@ -480,7 +480,6 @@ static int mobiveil_pcie_init_irq_domain(struct mobiveil_pcie *pcie) struct device *dev = &pcie->pdev->dev; struct device_node *node = dev->of_node; struct mobiveil_root_port *rp = &pcie->rp; - int ret; /* setup INTx */ rp->intx_domain = irq_domain_add_linear(node, PCI_NUM_INTX, @@ -494,11 +493,7 @@ static int mobiveil_pcie_init_irq_domain(struct mobiveil_pcie *pcie) raw_spin_lock_init(&rp->intx_mask_lock); /* setup MSI */ - ret = mobiveil_allocate_msi_domains(pcie); - if (ret) - return ret; - - return 0; + return mobiveil_allocate_msi_domains(pcie); } static int mobiveil_pcie_integrated_interrupt_init(struct mobiveil_pcie *pcie) -- 2.25.1