From patchwork Wed Sep 27 13:55:17 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: 9974137 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 C12D860365 for ; Wed, 27 Sep 2017 13:56:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A96A229192 for ; Wed, 27 Sep 2017 13:56:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9E0592919B; Wed, 27 Sep 2017 13:56:19 +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 60414291A3 for ; Wed, 27 Sep 2017 13:56:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752864AbdI0Nzd (ORCPT ); Wed, 27 Sep 2017 09:55:33 -0400 Received: from mout.web.de ([212.227.17.11]:61963 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752919AbdI0Nzb (ORCPT ); Wed, 27 Sep 2017 09:55:31 -0400 Received: from [192.168.1.3] ([92.228.186.72]) by smtp.web.de (mrweb103 [213.165.67.124]) with ESMTPSA (Nemesis) id 0LyUkU-1dK4Mg07Bm-015noH; Wed, 27 Sep 2017 15:55:20 +0200 To: linux-clk@vger.kernel.org, linux-samsung-soc@vger.kernel.org, Chanwoo Choi , Michael Turquette , Stephen Boyd , Sylwester Nawrocki , Thomas Abraham , Tomasz Figa From: SF Markus Elfring Subject: [PATCH] clk: samsung: Delete an error message for a failed memory allocation in exynos_register_cpu_clock() Cc: LKML , kernel-janitors@vger.kernel.org Message-ID: <19c81633-7110-260a-70c6-c55fad5607d6@users.sourceforge.net> Date: Wed, 27 Sep 2017 15:55:17 +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:DmQM649maIU2Cd823yQ3fm9CsHmD+rIW3EgUyn8EV5gTI1oDedV asQT/aC0B3A6IFasHRnVdsz42bgfBHAHMbFV6T4A+13Hi05q9S2XYCnsdWSXv0VC+98G6Jb 8I7ESeljtNe6vtG5NwNP1eNHQPrHK7pa3ynSs44JGuawiVOZc7EJP0BT5ID8E2its7z+F4j e8kt8pQ4/vg52kfWgRSVQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:jhJvVeWtHnU=:YOM4PaBbHW0V9V+DfkCqr8 JajtGEpvyHICy8lsNx3zw1SmnbrxhDGVNpJOseiPnmQXZ2mloWcaGV4VDnYVvih4d8bIEGOGV TXwCtJDwUujcsIwBeAfTlToKrF1sH0/np/6J3R0BF/RWG1iFW4lbmVTd4YtZO/Q/bRkUiLkm1 IQ3YwFuQuiPNWSguVP10ZrUGq4ia9JMtF4h8HDoJcJIv4BvxGg7mNl3DzllTFVtkjP/VePwK1 8RY7hVPMnqBEELQeaB9bWKL/85W18uiV9IT4Cye9LD/3TToD5RDABReNLLA9DRQZEsj7L1jI7 LgVMQk0yKznMlbCH7c4IVCkeriIfekAJJTSSblOaYivaFFKxplAHc2imfkv8n7Kj011kD1aoz emlKrQOup9IJ+Nb3BjUy9aRevN9/LkmtTkQAQI1R0fTkmK65HznjzrOozYqa3iPoDe7m9uHPo PK6FQqNMas1QvXltbJ7TBmI3vUdPN4T7U/9cu98ft71NqAuYfLTBa+AoCxCrT4WFFTJSSsPgN Z9VOZgg3zHP9f8DyZxJWkgEH9aafaes1oCrAKmPabSR9r7hF8mA3TdDX0V4YWZoDZjWHPRt+c GsBfHvnBlNabSv0U1JdXSYT70X5Vnhzm8MHPFdpXRDowu8USp19xB1lCyAaZre8nMJomUKIpX dC8vjwy5ktTx4URa+qSmxnPOiIkYoIKe9eXwhERzqLqTfLDZdMtFjG3HQwkP5k7sKpQyzIM/8 UAv6JVr2/qKFYXBYvCEIX75GkqjBLroXaykIVGthGGN60ANgMHuYMYi1CBUku72klrScgfA1s PF9bgcmpRq3KWANCKdSZPOCvoszTt3dmZFej2Lw1nlDS1X6LPI= 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 15:46:53 +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/samsung/clk-cpu.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/clk/samsung/clk-cpu.c b/drivers/clk/samsung/clk-cpu.c index 6686e8ba61f9..d2c99d8916b8 100644 --- a/drivers/clk/samsung/clk-cpu.c +++ b/drivers/clk/samsung/clk-cpu.c @@ -457,8 +457,6 @@ int __init exynos_register_cpu_clock(struct samsung_clk_provider *ctx, cpuclk->cfg = kmemdup(cfg, sizeof(*cfg) * num_cfgs, GFP_KERNEL); if (!cpuclk->cfg) { - pr_err("%s: could not allocate memory for cpuclk data\n", - __func__); ret = -ENOMEM; goto unregister_clk_nb; }