From patchwork Wed May 18 12:25:26 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 68039 Delivered-To: patch@linaro.org Received: by 10.140.92.199 with SMTP id b65csp2604489qge; Wed, 18 May 2016 05:25:43 -0700 (PDT) X-Received: by 10.66.142.199 with SMTP id ry7mr2243490pab.14.1463574343751; Wed, 18 May 2016 05:25:43 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id sj6si11871128pac.205.2016.05.18.05.25.43; Wed, 18 May 2016 05:25:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750792AbcERMZm (ORCPT + 14 others); Wed, 18 May 2016 08:25:42 -0400 Received: from mail-pf0-f177.google.com ([209.85.192.177]:35922 "EHLO mail-pf0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752695AbcERMZm (ORCPT ); Wed, 18 May 2016 08:25:42 -0400 Received: by mail-pf0-f177.google.com with SMTP id c189so18699673pfb.3 for ; Wed, 18 May 2016 05:25:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=nArpTMrHyEORFCNHuAHLEUxm5QuxR5pFKsXxl/jJE20=; b=EZnqcuCKtAqFrI2QrBXAiEH9UXtlwNY+xQgSStrzxo5QlbGSPDwnMFcb/YHz47xHDJ E6fnVh8sD376gGheikpq7RtOKkJ5f1tKXsYZaO6SSnG3F5XWLq+uxI62aAlDlxIUJPMd REHE+9p0+qhV7+DiS1tkC22sD5QOdsL1p2nW8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=nArpTMrHyEORFCNHuAHLEUxm5QuxR5pFKsXxl/jJE20=; b=BImqSxMKdrKe4s44Np85d5bPOeG87WoL8CTPTmAAlcnPtJ/hbtFDdLCiz0iBdJfybB bUFgOAnoO9Ffc3FFmQ9dr3QdALWTAdt40Etp3Uq32L5D/vXzhMyu1JBwwxPJPj/f2IM2 Ix6VN6QBOvwDRS9bRoqN39ZtzQb+2lSLsXQPQMXLSUuibeZtLDzkYl/X3NM+6VDlO4Dd LONPfGU9cg600FNHCmHTdt4rh4eHrdmjykvbYNf+7+GhfMXyuQgDke2J0cLCa2hjitdq Z5Oxf+LiuTXehFoVaiBu1vn+e3H5f+7Hk5ZsyKMXoMPjP7GwihUSadO7RT+78HItPz7G wenw== X-Gm-Message-State: AOPr4FWImVra8PQDhx01noMr/189nPaiXCO3r6i5Bayak2IYQNENyKlgiD+Y8NVQwOVJIQqS X-Received: by 10.98.104.6 with SMTP id d6mr10413505pfc.77.1463574341226; Wed, 18 May 2016 05:25:41 -0700 (PDT) Received: from localhost ([122.172.42.124]) by smtp.gmail.com with ESMTPSA id c190sm12101382pfb.33.2016.05.18.05.25.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 May 2016 05:25:40 -0700 (PDT) From: Viresh Kumar To: Rafael Wysocki , Viresh Kumar Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/6] cpufreq: governor: Remove prints from allocation failures Date: Wed, 18 May 2016 17:55:26 +0530 Message-Id: X-Mailer: git-send-email 2.7.1.410.g6faf27b In-Reply-To: References: In-Reply-To: References: Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org These aren't required anymore as the allocation core already prints such messages. Remove the redundant ones. Signed-off-by: Viresh Kumar --- drivers/cpufreq/cpufreq_conservative.c | 4 +--- drivers/cpufreq/cpufreq_ondemand.c | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) -- 2.7.1.410.g6faf27b -- To unsubscribe from this list: send the line "unsubscribe linux-pm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/cpufreq/cpufreq_conservative.c b/drivers/cpufreq/cpufreq_conservative.c index 316df247e00d..5a15f649602c 100644 --- a/drivers/cpufreq/cpufreq_conservative.c +++ b/drivers/cpufreq/cpufreq_conservative.c @@ -273,10 +273,8 @@ static int cs_init(struct dbs_data *dbs_data, bool notify) struct cs_dbs_tuners *tuners; tuners = kzalloc(sizeof(*tuners), GFP_KERNEL); - if (!tuners) { - pr_err("%s: kzalloc failed\n", __func__); + if (!tuners) return -ENOMEM; - } tuners->down_threshold = DEF_FREQUENCY_DOWN_THRESHOLD; tuners->freq_step = DEF_FREQUENCY_STEP; diff --git a/drivers/cpufreq/cpufreq_ondemand.c b/drivers/cpufreq/cpufreq_ondemand.c index 300163430516..309cfeb744b2 100644 --- a/drivers/cpufreq/cpufreq_ondemand.c +++ b/drivers/cpufreq/cpufreq_ondemand.c @@ -368,10 +368,8 @@ static int od_init(struct dbs_data *dbs_data, bool notify) int cpu; tuners = kzalloc(sizeof(*tuners), GFP_KERNEL); - if (!tuners) { - pr_err("%s: kzalloc failed\n", __func__); + if (!tuners) return -ENOMEM; - } cpu = get_cpu(); idle_time = get_cpu_idle_time_us(cpu, NULL);