Received: by 10.223.185.116 with SMTP id b49csp3303301wrg; Sun, 18 Feb 2018 19:47:31 -0800 (PST) X-Google-Smtp-Source: AH8x226zBwv8YX0Se43aI/l2BLwxVapyMfpFFtpD2wf+GhhEKySzELis67c3PB36ZrWhSaXIiOdE X-Received: by 10.99.63.139 with SMTP id m133mr11119258pga.174.1519012051846; Sun, 18 Feb 2018 19:47:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519012051; cv=none; d=google.com; s=arc-20160816; b=xCcLcVEIUQg+LYP6pAvjrsEoKkx9zzFEFDzRgs5iol2JKVObmjhyBq3XC42S68H5va FpNfJTMOKqlIT6KLXpO8fQLnxE/luZTw1deGvR041BMXNlQ/Nosc9QlE25vEVsVICEth YJkerUolY/b9qELDJzzSQM4HS+6cgh5oufkeWBrNkxKocFUB3vtdMrWKnaIr0dcBWMmd jcyPtiIypvsZ9VIHeyr0KajonFQMwM6DKk6i28TwVz8gj9Vejt15byDxe7rUZPg6hcD5 2AqOtWOJpUsk+hLwIOaadowbYPr29cMTKAqE8tKhOte6rjQwZ2oWi1AiWGb2+9tJO5qf QBIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=P/sdSB7+/dzsZ+D/ofTolZ0pyQrRBRF5Qn7Fam/kvfI=; b=JmOoKHvPAvaCLIkBefG5Zzu38AVZ5Tf9BOpk2uab200gKsPmvEZxcpxyHw2aKg5wKd qDzVsGGiLVRRZwpPE7IExt6EilQt4RBYjQ4/Wqn4yExZq1EPhNpEvDd0I+lhOkbDiX33 /nDLBbh13oI96ZovQzqlkPTPGZyRAUZG8ATElRnVwBZ06H75/oDfd/PvnSmzMjqPj48x a5iSwo9FeL+gmbOqBwseTlr702CpN6unLM4ktseuPdKPd8zZKKXdbGqreY9dtD87ZK1X BaCZDEj73g2mfQ3MfQ/CrCVC2GRnBitA8CZGRem1Gwv7NKIupLclAIqpQtuTJfgzoqE4 KcCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RFPJjkxx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c1-v6si3733826plk.813.2018.02.18.19.47.17; Sun, 18 Feb 2018 19:47:31 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RFPJjkxx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752278AbeBSDpA (ORCPT + 99 others); Sun, 18 Feb 2018 22:45:00 -0500 Received: from mail-pl0-f65.google.com ([209.85.160.65]:38725 "EHLO mail-pl0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752232AbeBSDo5 (ORCPT ); Sun, 18 Feb 2018 22:44:57 -0500 Received: by mail-pl0-f65.google.com with SMTP id h10so4980490plt.5 for ; Sun, 18 Feb 2018 19:44:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=P/sdSB7+/dzsZ+D/ofTolZ0pyQrRBRF5Qn7Fam/kvfI=; b=RFPJjkxx5SlNN4xPMO2/nr5CB3moXbEUM+wmjRWd1APoxRIEb26QylehmEzCVcvga4 40qBmqrtOKA8tWKSKWK3pzwuv2U+dM2dZmfv0iJV5miaeXI88pf8LxkpyXgKXt4H+UXL fIqWpykrkw2Rc6yrLVJDIg8OJE8Xc7pBdCAwM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=P/sdSB7+/dzsZ+D/ofTolZ0pyQrRBRF5Qn7Fam/kvfI=; b=owokT6hqL0S3hpEzfPdnGXo3XZI9+ivl+vU2C0e4lPly1UlKgNOeCJQvZhTJKwTMfN 4qwrwqsBGk3aEAR6Rzqc1cN2SU05vySk2BDoby4/DPRE1v1+mXgfcIAp3Wv/sEFtzI6J 2ZcjFx++Mhm6IUmyDU2FeOmIfuzpuUfCeGjeM54UNvUwtItZRCxZvvnUaEQrnrD4EYRO OWjTBcxSp11VYS2GP1j6jhfQ3nVbXnj80xbuBOm2TLXU+ODMpLVfW2dt9+dtKaumcXyD Yla6IqRj2A2KUSkAtyszs+hKs54HW/CTyPqjX5Iyahad6eZz8Uh4tGr/ISC3QBB/y2Vm Jirw== X-Gm-Message-State: APf1xPCwvaVEqGJmkohit4Ka1LR1a2nO0TA/8gGNrKl0cp1MAvkxSDlW EQ6K+ho6ivuHXiSRRd6lVugxxw== X-Received: by 2002:a17:902:e81:: with SMTP id 1-v6mr13173469plx.169.1519011897168; Sun, 18 Feb 2018 19:44:57 -0800 (PST) Received: from localhost ([122.167.232.138]) by smtp.gmail.com with ESMTPSA id j14sm4177298pfn.113.2018.02.18.19.44.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 18 Feb 2018 19:44:56 -0800 (PST) Date: Mon, 19 Feb 2018 09:14:54 +0530 From: Viresh Kumar To: SF Markus Elfring Cc: linux-pm@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Krzysztof Kozlowski , Kukjin Kim , "Rafael J. Wysocki" , LKML , kernel-janitors@vger.kernel.org Subject: Re: [PATCH] cpufreq: s3c24xx: Delete an error message for a failed memory allocation in two functions Message-ID: <20180219034454.GM28462@vireshk-i7> References: <201722ce-019d-a5b4-fc00-74679d82b64f@users.sourceforge.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201722ce-019d-a5b4-fc00-74679d82b64f@users.sourceforge.net> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 15-02-18, 17:40, SF Markus Elfring wrote: > From: Markus Elfring > Date: Thu, 15 Feb 2018 17:28:40 +0100 > > Omit an extra message for a memory allocation failure in these functions. > > This issue was detected by using the Coccinelle software. > > Signed-off-by: Markus Elfring > --- > drivers/cpufreq/s3c24xx-cpufreq.c | 8 ++------ > 1 file changed, 2 insertions(+), 6 deletions(-) > > diff --git a/drivers/cpufreq/s3c24xx-cpufreq.c b/drivers/cpufreq/s3c24xx-cpufreq.c > index 7b596fa38ad2..024afd0b9458 100644 > --- a/drivers/cpufreq/s3c24xx-cpufreq.c > +++ b/drivers/cpufreq/s3c24xx-cpufreq.c > @@ -473,10 +473,8 @@ int __init s3c_cpufreq_setboard(struct s3c_cpufreq_board *board) > * initdata. */ > > ours = kzalloc(sizeof(*ours), GFP_KERNEL); > - if (ours == NULL) { > - pr_err("%s: no memory\n", __func__); > + if (!ours) > return -ENOMEM; > - } > > *ours = *board; > cpu_cur.board = ours; > @@ -562,10 +560,8 @@ static int s3c_cpufreq_build_freq(void) > size++; > > ftab = kzalloc(sizeof(*ftab) * size, GFP_KERNEL); > - if (!ftab) { > - pr_err("%s: no memory for tables\n", __func__); > + if (!ftab) > return -ENOMEM; > - } > > ftab_size = size; > Acked-by: Viresh Kumar -- viresh