summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2016-12-03 21:46:02 +0100
committerTony Lindgren <tony@atomide.com>2016-12-27 19:06:00 +0100
commit9a6b6f75d9daa892ae8f6e5ed6ae0ab49b9586cb (patch)
treef92add7d7e97900cc8947e82c411e11ffb5a2136 /arch
parentARM: dts: n900: Mark eMMC slot with no-sdio and no-sd flags (diff)
downloadlinux-9a6b6f75d9daa892ae8f6e5ed6ae0ab49b9586cb.tar.xz
linux-9a6b6f75d9daa892ae8f6e5ed6ae0ab49b9586cb.zip
ARM: OMAP2+: PRM: Delete an error message for a failed memory allocation
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> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-omap2/prm_common.c4
1 files changed, 1 insertions, 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));