Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp4641679ima; Mon, 4 Feb 2019 21:51:20 -0800 (PST) X-Google-Smtp-Source: AHgI3IbWs5+7wW/fiMJi/olSsUilT/QcKzump6IbYLXJYL6htw1LV7mTtI084nOB1QLKBAhmubHi X-Received: by 2002:a63:7c41:: with SMTP id l1mr2966437pgn.45.1549345880131; Mon, 04 Feb 2019 21:51:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549345880; cv=none; d=google.com; s=arc-20160816; b=AbJD10JmxFefZPZNg3GaqjTmMEy3ESSrJ8E8wOqFavhtyhpxLFrNZwkxwXSiHN2S4D n8OE2SzMKGioR/CTHjw3z0OwW/tkWXS47fcUOGjikJSVU3e8s+FCVSGVoHorDtr+2krJ xhKIXUpiP4Q27aIWnCzqhH0n+NflgZy8q29eUQUs7DZcRPxBOmwNjP3OxHwdg12T2Zl2 +tfSKsfMfRNLc6DvclUvyS8meH3Fa8l8b0nxFqkggTijzbJSajgGjOgMRxFk2LTxbuKp w+29/1echZRmrsl0MtdTmfJLMxJSkeG3wRyO7h7OE4pGsJq/NgtxWzZcm0q2EsBAtSEw MRtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=DGP7CYkwt8gajGxukPC10TzFSfh8YkD3ft+233LUnPc=; b=onz/uZID8ysiaDLLjJysSap7XgOFsRhJA17ZpNoDOndfUyxOJVDKd1nJgacNLwXoew mrnQnEvTGWl2/lUXONrdb3nCjF8hD1QhORxNFH2eomO6DPl5l/smU0w3w0BOIg3213w3 P/v4NYjaKHRh+rgxVL+snV7WW4UVdyMmcdjVuatam9M4R+1IHOxSM5cpzV4+rLEO2TWy MpSW3HBMtqG348vIaNJa5GTKrhtQ9B2s7JfrtNYo+laGjkD0u2yOt8Im+PTLUmpnNbrG wxXno7fnIVnCmoE72sbqykZ9fxsAwLXbtpuTSeUdz6Op2J6c9ML3DWGdrlm3XGlMObDA Z0ig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mobiveil.co.in header.s=google header.b="E+UDUSp/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z38si2143095pga.193.2019.02.04.21.51.03; Mon, 04 Feb 2019 21:51:20 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@mobiveil.co.in header.s=google header.b="E+UDUSp/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726550AbfBEFuq (ORCPT + 99 others); Tue, 5 Feb 2019 00:50:46 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:40616 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725982AbfBEFup (ORCPT ); Tue, 5 Feb 2019 00:50:45 -0500 Received: by mail-wr1-f65.google.com with SMTP id p4so2246133wrt.7 for ; Mon, 04 Feb 2019 21:50:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mobiveil.co.in; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=DGP7CYkwt8gajGxukPC10TzFSfh8YkD3ft+233LUnPc=; b=E+UDUSp/GyYiWB43ftq1KJ9tO71GKLpyU+hJeJ3PcAFENA0vlGACg92Eb8fAZTbKx8 cQnTD+MUm6PGEWDUOIPsK0hojZqxaecuK3/N7LjjbkcNPfOYzlP7NJfkzzYQka/3h8rv Hwid220rMqd32SgWUa9Zu1JZWqHyAwieojzx4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=DGP7CYkwt8gajGxukPC10TzFSfh8YkD3ft+233LUnPc=; b=F2gguUP0tvaA0VQj79jn50EZP81icT/arTIQ2N1MNzwyQeyMkr4f65xUqA6V5h/pqi i1CSgd7t4RKi0CJB47QguiFi8ZHCSLmMU5Qapl99QVJ+MhzspHa/oK8gmbXhynrnoTF+ BVnZG4KnN4wsBCoKd+6CyGRUc84nuDtIZoW7Nxjuu9JdqPYV2Ckg1L4kLuCLJNWsbMFi AcOIi4GpqgsXey+Ys0d8jfaXsHpCYAh0qmA6RTxrmeQz7/pPthLbnA2WeD+6+zYmC31x hM08bQO0tKH98S46lXsPuXqYzCGDHI84EF/T4hTbbhDLxwyqAc3bRtm8kd1sv4TMctaZ 1Vnw== X-Gm-Message-State: AHQUAubssCTOmHKeVo6tVOVPVFj2XPXOvciLEHbqVHn55UBUMO71vfM1 tFBEqBpiFv1jJ0zPxjzP+k6RCTMVLrJ4z2c59NA/4w== X-Received: by 2002:a5d:4250:: with SMTP id s16mr2087442wrr.253.1549345843781; Mon, 04 Feb 2019 21:50:43 -0800 (PST) MIME-Version: 1.0 References: <20190129080926.36773-1-Zhiqiang.Hou@nxp.com> <20190129080926.36773-4-Zhiqiang.Hou@nxp.com> In-Reply-To: <20190129080926.36773-4-Zhiqiang.Hou@nxp.com> From: Subrahmanya Lingappa Date: Tue, 5 Feb 2019 11:23:17 +0530 Message-ID: Subject: Re: [PATCHv3 03/27] PCI: mobiveil: correct the returned error number To: "Z.q. Hou" Cc: "linux-pci@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "bhelgaas@google.com" , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "shawnguo@kernel.org" , Leo Li , "lorenzo.pieralisi@arm.com" , "catalin.marinas@arm.com" , "will.deacon@arm.com" , Mingkai Hu , "M.h. Lian" , Xiaowei Bao Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Reviewed-by: Subrahmanya Lingappa On Tue, Jan 29, 2019 at 1:38 PM Z.q. Hou wrote: > > From: Hou Zhiqiang > > This patch corrected the returned error number by convention, > and removed a unnecessary error check. > > Signed-off-by: Hou Zhiqiang > Reviewed-by: Minghuan Lian > --- > V3: > - No change > > drivers/pci/controller/pcie-mobiveil.c | 8 +++----- > 1 file changed, 3 insertions(+), 5 deletions(-) > > diff --git a/drivers/pci/controller/pcie-mobiveil.c b/drivers/pci/controller/pcie-mobiveil.c > index b87471f08a40..563210e731d3 100644 > --- a/drivers/pci/controller/pcie-mobiveil.c > +++ b/drivers/pci/controller/pcie-mobiveil.c > @@ -819,7 +819,7 @@ static int mobiveil_pcie_init_irq_domain(struct mobiveil_pcie *pcie) > > if (!pcie->intx_domain) { > dev_err(dev, "Failed to get a INTx IRQ domain\n"); > - return -ENODEV; > + return -ENOMEM; > } > > raw_spin_lock_init(&pcie->intx_mask_lock); > @@ -845,11 +845,9 @@ static int mobiveil_pcie_probe(struct platform_device *pdev) > /* allocate the PCIe port */ > bridge = devm_pci_alloc_host_bridge(dev, sizeof(*pcie)); > if (!bridge) > - return -ENODEV; > + return -ENOMEM; > > pcie = pci_host_bridge_priv(bridge); > - if (!pcie) > - return -ENOMEM; > > pcie->pdev = pdev; > > @@ -866,7 +864,7 @@ static int mobiveil_pcie_probe(struct platform_device *pdev) > &pcie->resources, &iobase); > if (ret) { > dev_err(dev, "Getting bridge resources failed\n"); > - return -ENOMEM; > + return ret; > } > > /* > -- > 2.17.1 >