From patchwork Sat Dec 3 20:56:48 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 9459813 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9A89E60459 for ; Sat, 3 Dec 2016 20:58:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8D961283E8 for ; Sat, 3 Dec 2016 20:58:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8246D283F1; Sat, 3 Dec 2016 20:58:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D26A0283ED for ; Sat, 3 Dec 2016 20:58:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751420AbcLCU6Q (ORCPT ); Sat, 3 Dec 2016 15:58:16 -0500 Received: from mout.web.de ([212.227.17.12]:56746 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751296AbcLCU6J (ORCPT ); Sat, 3 Dec 2016 15:58:09 -0500 Received: from [192.168.1.2] ([77.182.219.73]) by smtp.web.de (mrweb102 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MXYS2-1c9SAF3VTC-00WX6g; Sat, 03 Dec 2016 21:56:53 +0100 Cc: LKML , kernel-janitors@vger.kernel.org, Wolfram Sang From: SF Markus Elfring Subject: [PATCH] ARM: OMAP2+: PRM: Delete an error message for a failed memory allocation To: linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org, Paul Walmsley , Rajendra Nayak , Russell King , Tony Lindgren Message-ID: <6212b730-8e09-bf87-2a6b-23df9bc43e2d@users.sourceforge.net> Date: Sat, 3 Dec 2016 21:56:48 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 X-Provags-ID: V03:K0:jSRcEI/J+5ZG8/NfP6Tjzn7CAmP4v9ewzFrP1hjS5QxAMgfSTXy M+IbVugyFaECVMeW9D96NKlbiX86QJaqU12m6YVAqNcGdsXSRBqlyIeypoN6ug4a7QumAzv vVLEMn6eqSubdermfYwy6++cSeojyYuiRKEbRWc96h3pO9QvrMzIcvFVxftPtHKrrs029/Z XlVPvsSmnCGq4RT0lc5bg== X-UI-Out-Filterresults: notjunk:1; V01:K0:qY+5L1n+tKA=:gJEvoE2QmE6wccpqU0MhYC ZFz/70YBhbv35GepXkc3udgPLU8vARJqEK+bmfpqpykuDslK3x9xGAW5iIP7VDnX93+hvlOLo 7L+AURP8xdMdQqvTUyPpX2ojUYZ17mtiDcqxEBHt5GELTkrCxEwNHKNqSkz7KTSqGLUHYIFMB 4yUdtaM4+UWUQ/opGyyK2TT0U9gccFuuufpayHZqSEwhkPpS0ZKp1N5AaXG6vYSMDGTUCRE/S NPSt/cQIK08BkfP0t8quRh0cmx7CH0Az6ECg0NONHWWsM4893lMoVnc+QnsDmQ0Zhc76JGr/N qkVce3sx75qI0Z2ThiQutMuCegTIQE7rsh6SQJEODiK6XF2B1G/CeGJBi6w+dA7L4h9WEwiUi qOzMeJyrQrLfuzT5fLZRWn+iQCfpwCcApfrJUU40SAzj5jXrDMmWdB2149fS1DmyCS9kbeFF0 K3lBOEsmypMd3tW6mkN1wP4DNcz3ZHxI344LOdxEAGrfM4y3eLWcl5wnmSNq/cEJfP9TApkzS usY+mZ6N2YJd69DdPZ0ToZRJQ0MTIE/BbKKZfXOa/0l/BJ1uHrRNGANVuXQzcba+3ltTMKJpC 7PoIjk/4tL0weGm+B5VhlV4gTl3Z80xTDqDCzZIxsf0FOhjIwaJBJWX/xpWlDmWZBO7IMcUJS kjgILtv9ge+VgEUfZZop8JHiWYVcMCkeLCuKv71O7dajvjJL8rWo8OiN7wiR422QncETO1TRB l0xpVZ139BnHV3bocjwSsqEj7+QoQVSP6DeStytAFLDSLNzbcAMLRUHGjHPrbu29JCgRAR9CT DcNKfJj Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Markus Elfring 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 --- 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));