From patchwork Fri Jan 2 07:04:27 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 42678 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f199.google.com (mail-lb0-f199.google.com [209.85.217.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id EDE9026CD1 for ; Fri, 2 Jan 2015 07:05:26 +0000 (UTC) Received: by mail-lb0-f199.google.com with SMTP id z12sf4501464lbi.10 for ; Thu, 01 Jan 2015 23:05:25 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:in-reply-to:references :sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=huODbmGZuQCv8FVECBJZ5H/Nnc/YoyobAjdKF1N7Pd0=; b=DN5TEm1Kpq3FAdXr0DOu14+r/7H16At+xfNBAikmUUtJ8DhXhbJN/Yzz+z8rMO06SU nB8/QsnQHKLpk94DK8EePCEKE34eFVBUnbfUZx57EdaYjr+7qtZodKoCu81MMYrM9kCC fUIJOW0SWH/Z2aVxCuI4gWakczoPGOQPNmB84/QlZEPLyAZXXAGq9rGR0HE3WTDzLfms GDlImQFMY3DbsYkWPwwp8k/TxCbL7Xd0VD8km+uomal3yQRnRIwJPm55lgq7s9xOFd3g +MR1m9Jx5P/N8/SmTtasGhxW0tdz3M/urZeeJ1yhtL4oTdhP0YNoyYOpTXaUH7NXaZLJ 9zhw== X-Gm-Message-State: ALoCoQlz06LNB90ZowPx39nvfmShzVql1cdANnK1ardZaqtGQsUGR4o5LBac+GOEefG5JXrXQFqI X-Received: by 10.112.137.70 with SMTP id qg6mr10537lbb.14.1420182325792; Thu, 01 Jan 2015 23:05:25 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.203.162 with SMTP id kr2ls2286783lac.36.gmail; Thu, 01 Jan 2015 23:05:25 -0800 (PST) X-Received: by 10.112.163.167 with SMTP id yj7mr27564876lbb.96.1420182325470; Thu, 01 Jan 2015 23:05:25 -0800 (PST) Received: from mail-lb0-f177.google.com (mail-lb0-f177.google.com. [209.85.217.177]) by mx.google.com with ESMTPS id v7si50363811lag.130.2015.01.01.23.05.25 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 01 Jan 2015 23:05:25 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.177 as permitted sender) client-ip=209.85.217.177; Received: by mail-lb0-f177.google.com with SMTP id b6so14392455lbj.22 for ; Thu, 01 Jan 2015 23:05:25 -0800 (PST) X-Received: by 10.152.43.103 with SMTP id v7mr75128692lal.29.1420182325382; Thu, 01 Jan 2015 23:05:25 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.9.200 with SMTP id c8csp126135lbb; Thu, 1 Jan 2015 23:05:24 -0800 (PST) X-Received: by 10.66.181.136 with SMTP id dw8mr122281212pac.117.1420182323591; Thu, 01 Jan 2015 23:05:23 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id dl1si29047854pbb.67.2015.01.01.23.05.21; Thu, 01 Jan 2015 23:05:23 -0800 (PST) Received-SPF: none (google.com: linux-pm-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750711AbbABHFU (ORCPT + 12 others); Fri, 2 Jan 2015 02:05:20 -0500 Received: from mail-pd0-f172.google.com ([209.85.192.172]:49865 "EHLO mail-pd0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750744AbbABHFR (ORCPT ); Fri, 2 Jan 2015 02:05:17 -0500 Received: by mail-pd0-f172.google.com with SMTP id y13so23262794pdi.17 for ; Thu, 01 Jan 2015 23:05:17 -0800 (PST) X-Received: by 10.68.201.232 with SMTP id kd8mr44934133pbc.164.1420182317366; Thu, 01 Jan 2015 23:05:17 -0800 (PST) Received: from localhost ([122.167.116.151]) by mx.google.com with ESMTPSA id rx1sm31315041pbc.86.2015.01.01.23.05.16 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 01 Jan 2015 23:05:16 -0800 (PST) From: Viresh Kumar To: Rafael Wysocki Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, prarit@redhat.com, skannan@codeaurora.org, Viresh Kumar Subject: [PATCH 06/17] cpufreq: No need to check for has_target() Date: Fri, 2 Jan 2015 12:34:27 +0530 Message-Id: <7e7b61d27f62f46398a247542cbcaf5c782414fb.1420181916.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.2.0 In-Reply-To: References: In-Reply-To: References: Sender: linux-pm-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: viresh.kumar@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.177 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Either we can be setpolicy or target type, nothing else. And so the else part of setpolicy will automatically be of has_target() type. And so we don't need to check it again. Signed-off-by: Viresh Kumar --- drivers/cpufreq/cpufreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index c9ba1d64015c..5e60b3259cf5 100644 --- a/drivers/cpufreq/cpufreq.c +++ b/drivers/cpufreq/cpufreq.c @@ -463,7 +463,7 @@ static int cpufreq_parse_governor(char *str_governor, unsigned int *policy, *policy = CPUFREQ_POLICY_POWERSAVE; err = 0; } - } else if (has_target()) { + } else { struct cpufreq_governor *t; mutex_lock(&cpufreq_governor_mutex);