From patchwork Wed Sep 14 20:01:41 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: 9332361 X-Patchwork-Delegate: sboyd@codeaurora.org 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 84A82607FD for ; Wed, 14 Sep 2016 20:02:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7618A2A1BB for ; Wed, 14 Sep 2016 20:02:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6B0162A239; Wed, 14 Sep 2016 20:02:02 +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 EA7342A1BB for ; Wed, 14 Sep 2016 20:02:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754369AbcINUCB (ORCPT ); Wed, 14 Sep 2016 16:02:01 -0400 Received: from mout.web.de ([212.227.17.12]:54840 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753427AbcINUCA (ORCPT ); Wed, 14 Sep 2016 16:02:00 -0400 Received: from [192.168.1.3] ([78.48.193.118]) by smtp.web.de (mrweb102) with ESMTPSA (Nemesis) id 0Lh6QF-1bGgRy1esB-00oaOH; Wed, 14 Sep 2016 22:01:45 +0200 Subject: [PATCH 2/4] clk/Renesas-MSTP: Delete an error message for a failed memory allocation To: linux-clk@vger.kernel.org, Geert Uytterhoeven , Laurent Pinchart , Michael Turquette , Simon Horman , Stephen Boyd , Ulf Hansson References: <566ABCD9.1060404@users.sourceforge.net> <1575ddf1-bd1a-fe98-046a-a586eb30fe47@users.sourceforge.net> Cc: LKML , kernel-janitors@vger.kernel.org, Julia Lawall , Wolfram Sang From: SF Markus Elfring Message-ID: <04cf79a5-df91-d8c2-83b2-ad9e9130ee7a@users.sourceforge.net> Date: Wed, 14 Sep 2016 22:01:41 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <1575ddf1-bd1a-fe98-046a-a586eb30fe47@users.sourceforge.net> X-Provags-ID: V03:K0:y6/fsDzjCqrnnGRPKOjw1O0LCh5PPr+jSi6NfPDnHqJdgacxj2Y WphYa7E7W4akmPGHca73yO012hg7JGSbXFm9U3SFymL9hpcJF8EY8OtapOEvfLibUNlUE2G 8bSYN2Z9pUCo9nTJkud/ASG+wscAy7d95SB3QEwRvg2EzEt7IvQU3D+/8G0CCiLYHsjt/SK /4xlULMGiFwHxOyOhHmcw== X-UI-Out-Filterresults: notjunk:1; V01:K0:BIZXQ045rZw=:WbVODKEmFF0MKKhXtT+Vzc UMqJPXQhVgdQqtCPsJXA8Ml6Kmmz7az/d4Ah3eDIkhU7z9ZsuHN34fCxqAs5EiNbSnSyDg+HC scUHv5ZmxkDjOOrSkDE17QN5sqOP6uqTJek9atr2y8z2szO7FQN8uLiDyukqBuyjHcjgIVE+Q 5QmyNK3qt8UAiBfo5el3Opkg5c9ydz0wC80CcQRJWARrUV5DdGmiKugk0IZTEr7V2J2Xx4Owr xF+SDHPvPnG5XrwNGESWl9zgQ6zcmrD7p+1aAmmjqaSp0Y9ABjiJjP5KRhcR1wZhFqJeZzZsl hyfF0fglKSFLpA51GXWALExZ58qJO6i4+TGZy84vHLQbY/Jhm8oDPll978fWB6QaZ4/gH4yrv Qr3DZAOkvfLN+zucAOrMBrG8tLyZ0TXToxglHhJZXahqA8rfhxiRwtIJcA96/Q3MgG2MXjdry nB3GSN1zm+PnYaoR9ttM1Gtx7a8TLE8DwoKAvVoi5o4kw0P59PyCJu6ldZUxbAfIIyWotii3f algcLvGw75YpRK36hJLwESOTRROyXS07AH3GXoN49kjLXRY8h9sv6ZYsrfqrUk3oymO39xBTA 77+bvB3VReYW6LTWmQWmIu2gPeSZtGoI4HA0XIZiv93MqqGqJbVUICfahc4Yoh6j4rfR/nAxS ozhu3BNPg/JrAVFI5KpieGUbzMXNt2ODaGR4/quAdqGKo5MDA2U3WxKtvtgRV0q1aK0ZyuNUj 2sz/ovByJAbaWHIh69mgEtlLfzDqF7AH/MM8TXk1zohlj40J0Iqf55g2aSAaWIK5OrOuGfHkq i9K7GjY Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Markus Elfring Date: Wed, 14 Sep 2016 21:17:18 +0200 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 Reviewed-by: Geert Uytterhoeven --- drivers/clk/renesas/clk-mstp.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/clk/renesas/clk-mstp.c b/drivers/clk/renesas/clk-mstp.c index 9375777..1fdc44b 100644 --- a/drivers/clk/renesas/clk-mstp.c +++ b/drivers/clk/renesas/clk-mstp.c @@ -171,7 +171,6 @@ static void __init cpg_mstp_clocks_init(struct device_node *np) if (group == NULL || clks == NULL) { kfree(group); kfree(clks); - pr_err("%s: failed to allocate group\n", __func__); return; }