Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1244022pxk; Fri, 2 Oct 2020 05:02:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwEaUCFD/TMUqxHh5WjbuAXQrZvvO0nrzOXYP/IBWgM5BXLv5eEOCT3geXY08eMfHVSQ4PC X-Received: by 2002:a17:907:94cf:: with SMTP id dn15mr1962013ejc.114.1601640141821; Fri, 02 Oct 2020 05:02:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601640141; cv=none; d=google.com; s=arc-20160816; b=JwD2AWmu49Srz0b0GiPU6/MwbZQ9YOcvbVYdPw4gc3NcEbSmB3D6Q8x/QARgba/p5w PfRsBjNukjdQ4amf2aNBg5QVpsXy4xyaLjVmeXX+diabuzt+1y/BRYiWkw3s3yX/Eq2Z fY1KLMDa8hl8qPTVyaNzjFRLrFb3a5Yyd0832fLpN6NAfIVZwQNeZUk1hRxMvNM5RTdn pdf+GJoM52ADPqNXsiqDwaPiDvrZzaXD7DxPuJnTbmzCzuNSIbhsGb2Xb9YxevZ82bwv WISlpxqcWchQv5wETYa+AY0K9rKimI3b/aC2rc3EXBhtN1szv1+pVOXgNchtCdgY6KKi BN6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=5zFADkP/ybuvKdkIXvYdQphx8V+Hfg6Sw0vi3EQ0948=; b=STTi7+2TLt+8sKkTlHe3WJ6N59AJGYFZCuBeieR97NhGeDuWafIr+CYcvr/p9sa+tj RC3UEtZ+oiR9bIOHQ3DxkAluRpoJP9E4a9QsRy0IEKzUe79CyJRPWwU86QiYCzvDogWD wdszL5mSlP2IqGRKCXr2tAq1MHbDloWyu/68DIpOTWNC+njRkBhDwiViq8KnJSbuZNHX q+Mcpz0U4Wshl1eKRczOdWyU4ZiuvlnKtzuO+qbCAV7B2EJ/QfTv1xLvModNT9g00UfA 1umaxmwF9bTyMSTiWAIK4zRUgqluYZId/arxBjG7G9fgWlrhGDDWWQxaw8LjOVkSrYH9 +wRQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ch15si1002027ejb.264.2020.10.02.05.01.59; Fri, 02 Oct 2020 05:02:21 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387823AbgJBL5l (ORCPT + 99 others); Fri, 2 Oct 2020 07:57:41 -0400 Received: from foss.arm.com ([217.140.110.172]:33818 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387768AbgJBL5l (ORCPT ); Fri, 2 Oct 2020 07:57:41 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 748CE1063; Fri, 2 Oct 2020 04:57:40 -0700 (PDT) Received: from e121166-lin.cambridge.arm.com (e121166-lin.cambridge.arm.com [10.1.196.255]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id A82793F70D; Fri, 2 Oct 2020 04:57:39 -0700 (PDT) Date: Fri, 2 Oct 2020 12:57:37 +0100 From: Lorenzo Pieralisi To: Qinglang Miao Cc: Rob Herring , Bjorn Helgaas , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH -next] PCI: loongson: simplify the return expression of loongson_pci_probe() Message-ID: <20201002115737.GD23640@e121166-lin.cambridge.arm.com> References: <20200921131054.92797-1-miaoqinglang@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200921131054.92797-1-miaoqinglang@huawei.com> User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 21, 2020 at 09:10:54PM +0800, Qinglang Miao wrote: > Simplify the return expression. > > Signed-off-by: Qinglang Miao > --- > drivers/pci/controller/pci-loongson.c | 7 +------ > 1 file changed, 1 insertion(+), 6 deletions(-) Applied to pci/loongson, thanks. Lorenzo > 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 >