diff mbox series

of: irq: Remove WARN_ON() for kzalloc() failure

Message ID 20190502124015.3898-1-geert+renesas@glider.be
State Accepted, archived
Headers show
Series of: irq: Remove WARN_ON() for kzalloc() failure | expand

Checks

Context Check Description
robh/checkpatch success

Commit Message

Geert Uytterhoeven May 2, 2019, 12:40 p.m. UTC
There is no need to print a backtrace if kzalloc() fails, as the memory
allocation core already takes care of that.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
 drivers/of/irq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/of/irq.c b/drivers/of/irq.c
index e1f6f392a4c0dde0..7f84bb4903caaf4d 100644
--- a/drivers/of/irq.c
+++ b/drivers/of/irq.c
@@ -500,7 +500,7 @@  void __init of_irq_init(const struct of_device_id *matches)
 		 * pointer, interrupt-parent device_node etc.
 		 */
 		desc = kzalloc(sizeof(*desc), GFP_KERNEL);
-		if (WARN_ON(!desc)) {
+		if (!desc) {
 			of_node_put(np);
 			goto err;
 		}