From patchwork Wed Sep 27 09:44:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 9973641 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 9840560375 for ; Wed, 27 Sep 2017 09:45:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7AFFD28CC0 for ; Wed, 27 Sep 2017 09:45:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6F8B329109; Wed, 27 Sep 2017 09:45:37 +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 E2AEB28CC0 for ; Wed, 27 Sep 2017 09:45:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752090AbdI0JpX (ORCPT ); Wed, 27 Sep 2017 05:45:23 -0400 Received: from mout.web.de ([212.227.15.14]:62289 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751808AbdI0JpV (ORCPT ); Wed, 27 Sep 2017 05:45:21 -0400 Received: from [192.168.1.3] ([77.182.208.134]) by smtp.web.de (mrweb001 [213.165.67.108]) with ESMTPSA (Nemesis) id 0MddXQ-1dilqP2mqK-00PNwk; Wed, 27 Sep 2017 11:44:33 +0200 To: linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-rockchip@lists.infradead.org, =?UTF-8?Q?Heiko_St=c3=bcbner?= , Michael Turquette , Stephen Boyd Cc: LKML , kernel-janitors@vger.kernel.org From: SF Markus Elfring Subject: [PATCH] clk: rockchip: Delete an error message for a failed memory allocation in rockchip_clk_register_cpuclk() Message-ID: Date: Wed, 27 Sep 2017 11:44:30 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 Content-Language: en-GB X-Provags-ID: V03:K0:Ue91l9hzJb96L/MapmKX3s58uXPbYB+0ReARcFgfkW7EpXCmuD+ MHPJaXqaGoXz75uNMsvUhxPzw0JyfVIbsFD2/+Whzst4ctr874TTeYUz4QHuuBMXP9segSD G1NbW0LlG6GD+4wdQ78GEhHSOQDo7jXOh68ZlzWiYJam3/GWq7W3DDU18HhNGquxlb0Lbnp MejCiMNQnCp+8va3dngSA== X-UI-Out-Filterresults: notjunk:1; V01:K0:x4zhEJtDjag=:/NK1DXrR23swysX8Z3PLKt H8wor7nZQ1GsezGyDSD6cm5OcSFfzQUMfFxLi+Zib+qPyx7o9lD7wfrfmfEpEUsbHJWlcB0s8 aaivVmq6glWDVTyR6zehuPachFNXxZ/rEvieW5iWiYn+iPHPzi08kMqhOBmLXNKEnl6rhZHye dDDRYnO7TM+6SJoChdHx0OfhSlv1H7y8jc0S9eM7lEsQMbdDCWUwNcgMgCimslHJjQ5tqXyjh 07CTGnBB8JCIlJXD6oG9qKUpZFudPhagqHOgyCLxSP7AiUeufA4njlBLKfzwoFlMwIK5MBCuC Jn5+lN+JXi75g4LLWv+pWa5gS82Zbskz1x1aMjUcGWzK5NYGYjH4xhuhXL/fOrxtFX8lg1YAn pj00b+Qst50NocOMdY0uyENoZ2xCoei1nCddiVReC/YMopN44ndxwcDU2OxTfbyZPVVMSowbi 7HTnkp277PfYSXs9aPRl/kYsPDpUBu0m5PBTsicDwX/VTIbJYRWQJ4C7Q1QVaJmNN4VEkZZp8 vvtDX1umIlRqkziWMhsBFrqHPNcXkH7Al5Vzf4zS6Z+NauGhXlembYgop0AE/5GBo2fCv1TXe lOpxhv6t8n4sK7piJn2Ga8G5wt82h5xDbT9Jt8wAHcQ1vUWlujukgC9EpEzrpSORmmVPefvnO vMgzJ/nVRn+2eQxFY1gmQYCS1vrHEgNNJyL/MQsMTLIWk0agC84MMIcHINNJLtZ7DdtBwy5NV 2ZJRYzksvlYO08AvG4RoZV9mF4dZ8oWvUiL/jqO75prShxsL0n4/ZNURaqNB4sL3vOrOXfGeU P6byPjBaLVGpAZWxMr8KQ23NkK4VAaHmpTm9rICqi6t1+yNx6seeNhJUMmej7sg7Q4NL9A2xn vn74cOAYXDt7v8n+AK/xpeE6KHcKCRsjZqEBCMwE6WXxnbe0LmFSW4flvWwJuSxhxwgfCWkMR JVY/aisvAgcK4WKKk7j1qGN7715+xhz4+5KgHoUd37igfsceogrNA7Z7XBL9BfRGE/v+MOD8c Kw== 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, 27 Sep 2017 11:38:17 +0200 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/clk/rockchip/clk-cpu.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/clk/rockchip/clk-cpu.c b/drivers/clk/rockchip/clk-cpu.c index 0e09684d43a5..32c19c0f1e14 100644 --- a/drivers/clk/rockchip/clk-cpu.c +++ b/drivers/clk/rockchip/clk-cpu.c @@ -322,8 +322,6 @@ struct clk *rockchip_clk_register_cpuclk(const char *name, sizeof(*rates) * nrates, GFP_KERNEL); if (!cpuclk->rate_table) { - pr_err("%s: could not allocate memory for cpuclk rates\n", - __func__); ret = -ENOMEM; goto unregister_notifier; }