All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ley Foon Tan <lftan@altera.com>
To: Wei Yongjun <weiyj.lk@gmail.com>
Cc: Bjorn Helgaas <bhelgaas@google.com>,
	Wei Yongjun <weiyongjun1@huawei.com>,
	Rocketboard Maillist <rfi@lists.rocketboards.org>,
	linux-pci <linux-pci@vger.kernel.org>
Subject: Re: [PATCH -next] PCI: altera: Remove redundant dev_err call in altera_pcie_parse_dt()
Date: Tue, 18 Oct 2016 10:22:30 +0800	[thread overview]
Message-ID: <CAFiDJ5_K0wK6QH6=adSDm_2PbqnyaVWCyJZtX3DPSZQkHd-QKg@mail.gmail.com> (raw)
In-Reply-To: <1476716173-31310-1-git-send-email-weiyj.lk@gmail.com>

On Mon, Oct 17, 2016 at 10:56 PM, Wei Yongjun <weiyj.lk@gmail.com> wrote:
> From: Wei Yongjun <weiyongjun1@huawei.com>
>
> There is a error message within devm_ioremap_resource
> already, so remove the dev_err call to avoid redundant
> error message.
>
> Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
> ---
>  drivers/pci/host/pcie-altera.c | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/drivers/pci/host/pcie-altera.c b/drivers/pci/host/pcie-altera.c
> index b0ac4df..8be45a8 100644
> --- a/drivers/pci/host/pcie-altera.c
> +++ b/drivers/pci/host/pcie-altera.c
> @@ -550,10 +550,8 @@ static int altera_pcie_parse_dt(struct altera_pcie *pcie)
>
>         cra = platform_get_resource_byname(pdev, IORESOURCE_MEM, "Cra");
>         pcie->cra_base = devm_ioremap_resource(dev, cra);
> -       if (IS_ERR(pcie->cra_base)) {
> -               dev_err(dev, "failed to map cra memory\n");
> +       if (IS_ERR(pcie->cra_base))
>                 return PTR_ERR(pcie->cra_base);
> -       }
>
>         /* setup IRQ */
>         pcie->irq = platform_get_irq(pdev, 0);
>
Acked-by: Ley Foon Tan <lftan@altera.com>

  reply	other threads:[~2016-10-18  2:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-17 14:56 [PATCH -next] PCI: altera: Remove redundant dev_err call in altera_pcie_parse_dt() Wei Yongjun
2016-10-18  2:22 ` Ley Foon Tan [this message]
2016-11-11 21:21 ` Bjorn Helgaas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAFiDJ5_K0wK6QH6=adSDm_2PbqnyaVWCyJZtX3DPSZQkHd-QKg@mail.gmail.com' \
    --to=lftan@altera.com \
    --cc=bhelgaas@google.com \
    --cc=linux-pci@vger.kernel.org \
    --cc=rfi@lists.rocketboards.org \
    --cc=weiyj.lk@gmail.com \
    --cc=weiyongjun1@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.