From: Michal Simek <michal.simek@xilinx.com>
To: Yihao Han <hanyihao@vivo.com>, Hyun Kwon <hyun.kwon@xilinx.com>,
Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
Vinod Koul <vkoul@kernel.org>,
Michal Simek <michal.simek@xilinx.com>,
<dmaengine@vger.kernel.org>,
<linux-arm-kernel@lists.infradead.org>,
<linux-kernel@vger.kernel.org>
Cc: <kernel@vivo.com>
Subject: Re: [PATCH] dmaengine: xilinx_dpdma: fix platform_get_irq.cocci warning
Date: Thu, 3 Mar 2022 15:55:20 +0100 [thread overview]
Message-ID: <96c87e2d-e32b-92c4-7788-4981cb1af7f5@xilinx.com> (raw)
In-Reply-To: <20220303130350.3929-1-hanyihao@vivo.com>
On 3/3/22 14:03, Yihao Han wrote:
> Remove dev_err() messages after platform_get_irq*() failures.
> platform_get_irq() already prints an error.
>
> Generated by: scripts/coccinelle/api/platform_get_irq.cocci
>
> Signed-off-by: Yihao Han <hanyihao@vivo.com>
> ---
> drivers/dma/xilinx/xilinx_dpdma.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/drivers/dma/xilinx/xilinx_dpdma.c b/drivers/dma/xilinx/xilinx_dpdma.c
> index b0f4948b00a5..f708808d73ba 100644
> --- a/drivers/dma/xilinx/xilinx_dpdma.c
> +++ b/drivers/dma/xilinx/xilinx_dpdma.c
> @@ -1652,10 +1652,8 @@ static int xilinx_dpdma_probe(struct platform_device *pdev)
> dpdma_hw_init(xdev);
>
> xdev->irq = platform_get_irq(pdev, 0);
> - if (xdev->irq < 0) {
> - dev_err(xdev->dev, "failed to get platform irq\n");
> + if (xdev->irq < 0)
> return xdev->irq;
> - }
>
> ret = request_irq(xdev->irq, xilinx_dpdma_irq_handler, IRQF_SHARED,
> dev_name(xdev->dev), xdev);
Make sense.
Acked-by: Michal Simek <michal.simek@xilinx.com>
Thanks,
Michal
prev parent reply other threads:[~2022-03-03 14:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-03 13:03 Yihao Han
2022-03-03 14:55 ` Michal Simek [this message]
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=96c87e2d-e32b-92c4-7788-4981cb1af7f5@xilinx.com \
--to=michal.simek@xilinx.com \
--cc=dmaengine@vger.kernel.org \
--cc=hanyihao@vivo.com \
--cc=hyun.kwon@xilinx.com \
--cc=kernel@vivo.com \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=vkoul@kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®