[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <7995eb17-f2ec-54ad-f4d4-7b3dd8337d33@users.sourceforge.net>
Date: Tue, 23 May 2017 20:10:26 +0200
From: SF Markus Elfring <elfring@...rs.sourceforge.net>
To: linux-mips@...ux-mips.org,
Dan Carpenter <dan.carpenter@...cle.com>,
David Daney <david.daney@...ium.com>,
Ralf Bächle <ralf@...ux-mips.org>,
"Steven J. Hill" <steven.hill@...ium.com>
Cc: LKML <linux-kernel@...r.kernel.org>,
kernel-janitors@...r.kernel.org
Subject: [PATCH] MIPS: Octeon: Delete an error message for a failed memory
allocation in octeon_irq_init_gpio()
From: Markus Elfring <elfring@...rs.sourceforge.net>
Date: Tue, 23 May 2017 20:00:06 +0200
Omit an extra message for a memory allocation failure in this function.
This issue was detected by using the Coccinelle software.
Link: http://events.linuxfoundation.org/sites/events/files/slides/LCJ16-Refactor_Strings-WSang_0.pdf
Signed-off-by: Markus Elfring <elfring@...rs.sourceforge.net>
---
arch/mips/cavium-octeon/octeon-irq.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/arch/mips/cavium-octeon/octeon-irq.c b/arch/mips/cavium-octeon/octeon-irq.c
index c1eb1ff7c800..050c08ece5b6 100644
--- a/arch/mips/cavium-octeon/octeon-irq.c
+++ b/arch/mips/cavium-octeon/octeon-irq.c
@@ -1615,7 +1615,6 @@ static int __init octeon_irq_init_gpio(
irq_domain_add_linear(
gpio_node, 16, &octeon_irq_domain_gpio_ops, gpiod);
} else {
- pr_warn("Cannot allocate memory for GPIO irq_domain.\n");
return -ENOMEM;
}
--
2.13.0
Powered by blists - more mailing lists