linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: OMAP2+: PRM: Delete an error message for a failed memory allocation
@ 2016-12-03 20:56 SF Markus Elfring
  2016-12-27 17:34 ` Tony Lindgren
  0 siblings, 1 reply; 2+ messages in thread
From: SF Markus Elfring @ 2016-12-03 20:56 UTC (permalink / raw)
  To: linux-arm-kernel, linux-omap, Paul Walmsley, Rajendra Nayak,
	Russell King, Tony Lindgren
  Cc: LKML, kernel-janitors, Wolfram Sang

From: Markus Elfring <elfring@users.sourceforge.net>
Date: Sat, 3 Dec 2016 21:46:02 +0100

Omit an extra message for a memory allocation failure in this function.

Link: http://events.linuxfoundation.org/sites/events/files/slides/LCJ16-Refactor_Strings-WSang_0.pdf
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
---
 arch/arm/mach-omap2/prm_common.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/arch/arm/mach-omap2/prm_common.c b/arch/arm/mach-omap2/prm_common.c
index 5b2f5138d938..2b138b65129a 100644
--- a/arch/arm/mach-omap2/prm_common.c
+++ b/arch/arm/mach-omap2/prm_common.c
@@ -295,10 +295,8 @@ int omap_prcm_register_chain_handler(struct omap_prcm_irq_setup *irq_setup)
 		GFP_KERNEL);
 
 	if (!prcm_irq_chips || !prcm_irq_setup->saved_mask ||
-	    !prcm_irq_setup->priority_mask) {
-		pr_err("PRCM: kzalloc failed\n");
+	    !prcm_irq_setup->priority_mask)
 		goto err;
-	}
 
 	memset(mask, 0, sizeof(mask));
 
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] ARM: OMAP2+: PRM: Delete an error message for a failed memory allocation
  2016-12-03 20:56 [PATCH] ARM: OMAP2+: PRM: Delete an error message for a failed memory allocation SF Markus Elfring
@ 2016-12-27 17:34 ` Tony Lindgren
  0 siblings, 0 replies; 2+ messages in thread
From: Tony Lindgren @ 2016-12-27 17:34 UTC (permalink / raw)
  To: SF Markus Elfring
  Cc: linux-arm-kernel, linux-omap, Paul Walmsley, Rajendra Nayak,
	Russell King, LKML, kernel-janitors, Wolfram Sang

* SF Markus Elfring <elfring@users.sourceforge.net> [161203 12:58]:
> From: Markus Elfring <elfring@users.sourceforge.net>
> Date: Sat, 3 Dec 2016 21:46:02 +0100
> 
> Omit an extra message for a memory allocation failure in this function.

Applying into omap-for-v4.10/fixes.

Regards,

Tony

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-12-27 17:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-03 20:56 [PATCH] ARM: OMAP2+: PRM: Delete an error message for a failed memory allocation SF Markus Elfring
2016-12-27 17:34 ` Tony Lindgren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).