From: atull <atull@opensource.altera.com>
To: Moritz Fischer <moritz.fischer@ettus.com>
Cc: <linux-kernel@vger.kernel.org>
Subject: Re: [RFC] fpga: socfpga: Fix check of return value of devm_request_irq
Date: Thu, 22 Oct 2015 14:24:03 -0500 [thread overview]
Message-ID: <alpine.DEB.2.02.1510221423070.14856@linuxheads99> (raw)
In-Reply-To: <1445541167-7095-1-git-send-email-moritz.fischer@ettus.com>
On Thu, 22 Oct 2015, Moritz Fischer wrote:
Hi Moritz,
Thank you, yes this is better.
I don't know if I need to ack everything, but here it is
anyway:
Acked-by: Alan Tull <atull@opensource.altera.com>
Alan
> The return value should be checked for non-zero, instead
> of checking it being IS_ERR_VALUE().
>
> Signed-off-by: Moritz Fischer <moritz.fischer@ettus.com>
> ---
> drivers/fpga/socfpga.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/fpga/socfpga.c b/drivers/fpga/socfpga.c
> index 706b80d..27d2ff2 100644
> --- a/drivers/fpga/socfpga.c
> +++ b/drivers/fpga/socfpga.c
> @@ -577,7 +577,7 @@ static int socfpga_fpga_probe(struct platform_device *pdev)
>
> ret = devm_request_irq(dev, priv->irq, socfpga_fpga_isr, 0,
> dev_name(dev), priv);
> - if (IS_ERR_VALUE(ret))
> + if (ret)
> return ret;
>
> return fpga_mgr_register(dev, "Altera SOCFPGA FPGA Manager",
> --
> 2.4.3
>
>
next prev parent reply other threads:[~2015-10-22 19:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-22 19:12 [RFC] fpga: socfpga: Fix check of return value of devm_request_irq Moritz Fischer
2015-10-22 19:24 ` atull [this message]
2015-10-25 10:00 ` Josh Cartwright
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=alpine.DEB.2.02.1510221423070.14856@linuxheads99 \
--to=atull@opensource.altera.com \
--cc=linux-kernel@vger.kernel.org \
--cc=moritz.fischer@ettus.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox