Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1258883 > unrolled thread

[PATCH RESEND] fpga: socfpga: Fix check of return value of devm_request_irq

Started byMoritz Fischer <moritz.fischer@ettus.com>
First post2015-10-29 17:00 +0100
Last post2015-10-29 17:00 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH RESEND] fpga: socfpga: Fix check of return value of devm_request_irq Moritz Fischer <moritz.fischer@ettus.com> - 2015-10-29 17:00 +0100

#1258883 — [PATCH RESEND] fpga: socfpga: Fix check of return value of devm_request_irq

FromMoritz Fischer <moritz.fischer@ettus.com>
Date2015-10-29 17:00 +0100
Subject[PATCH RESEND] fpga: socfpga: Fix check of return value of devm_request_irq
Message-ID<qoXMo-26W-43@gated-at.bofh.it>
The return value should be checked for non-zero, instead
of checking it being IS_ERR_VALUE().

Acked-by: Alan Tull <atull@opensource.altera.com>
Reviewed-by: Josh Cartwright <joshc@eso.teric.us>
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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web